9512fe850e98fdd448c638ca63fdd92a8a510255ahl/*
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * CDDL HEADER START
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * The contents of this file are subject to the terms of the
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Common Development and Distribution License (the "License").
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * You may not use this file except in compliance with the License.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * or http://www.opensolaris.org/os/licensing.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * See the License for the specific language governing permissions
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * and limitations under the License.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * When distributing Covered Code, include this CDDL HEADER in each
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * If applicable, add the following below this CDDL HEADER, with the
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * fields enclosed by brackets "[]" replaced with your own identifying
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * information: Portions Copyright [yyyy] [name of copyright owner]
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * CDDL HEADER END
9512fe850e98fdd448c638ca63fdd92a8a510255ahl */
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl/*
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Use is subject to license terms.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl */
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#pragma ident "%Z%%M% %I% %E% SMI"
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl/*
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * ASSERTION:
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Using -l option with -P option.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * SECTION: dtrace Utility/-l Option;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * dtrace Utility/-P Option
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * NOTES: Manually check:
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * 1)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * /usr/sbin/dtrace -lP profile
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * RESULT: List of only profile probes.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * 2)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * /usr/sbin/dtrace -lP foofile
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * RESULT: Silent output without any probes listed.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * 3) automated in tst.InvalidProvider2.d.ksh
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * /usr/sbin/dtrace -lP profile:::
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * RESULT: not a valid probe description
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * 4) automated in tst.InvalidProvider1.d.ksh
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * /usr/sbin/dtrace -lP profile:::profile-97
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * RESULT: not a valid probe description.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * 5)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * /usr/sbin/dtrace -lP profile -lP syscall
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * RESULT: matching list of both profile and syscall probes.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * 6)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * /usr/sbin/dtrace -lP profile -lP foofile
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * RESULT: List of only profile probes.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * 7)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * /usr/sbin/dtrace -lP foofile -lP profile
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * RESULT: List of only profile probes.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * 8) authomated in tst.InvalidProvider3.d.ksh
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * /usr/sbin/dtrace -lP fbt:des:des3_crunch_block:return
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * RESULT: not a valid probe description.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * 9)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * /usr/sbin/dtrace -lP profile'{printf("FOUND");}'
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * RESULT: Silent output without any probes listed.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * 10)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * /usr/sbin/dtrace -lP profile '{printf("FOUND");}'
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * RESULT: List of only profile probes.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * 11) automated in tst.InvalidProvider4.d.ksh
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * /usr/sbin/dtrace -lP
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * profile'/probename == "profile-199"/{printf("FOUND");}'
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * RESULT: not a valid probe description.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl */