4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #pragma ident "%Z%%M% %I% %E% SMI"
31 * Using -l option with -f option.
33 * SECTION: dtrace Utility/-l Option;
34 * dtrace Utility/-f Option
36 * NOTES: Manually check:
39 * /usr/sbin/dtrace -lf profile
40 * RESULT: Silent output without any probes listed.
43 * /usr/sbin/dtrace -lf genunix
44 * RESULT: Silent output without any probes listed.
47 * /usr/sbin/dtrace -lf read
48 * RESULT: matching list of probes with function read.
51 * /usr/sbin/dtrace -lf genunix:read
52 * RESULT: matching list of probes with module genunix and
56 * /usr/sbin/dtrace -lf sysinfo:genunix:read
57 * RESULT: matching list of probes with provider sysinfo, module
58 * genunix and function read.
61 * /usr/sbin/dtrace -lf :genunix::
62 * RESULT: Silent output without any probes listed.
65 * /usr/sbin/dtrace -lf ::read:
66 * RESULT: Silent output without any probes listed.
69 * /usr/sbin/dtrace -lf profile:::profile-97
70 * RESULT: not a valid probe description.
73 * /usr/sbin/dtrace -lf read -lf write
74 * RESULT: matching list of both read and write probes.
77 * /usr/sbin/dtrace -lf read -lm fight
78 * RESULT: List of only read probes.
81 * /usr/sbin/dtrace -lf fight -lf write
82 * RESULT: List of only write probes.
84 * 12) Has been automated.
85 * /usr/sbin/dtrace -lf fbt:des:des3_crunch_block:return
86 * RESULT: not a valid probe description.
89 * /usr/sbin/dtrace -lf read'{printf("FOUND");}'
90 * RESULT: Silent output without any probes listed.
93 * /usr/sbin/dtrace -lf read '{printf("FOUND");}'
94 * RESULT: List of only read probes.
97 * /usr/sbin/dtrace -lf read'/probename == "entry"/{printf("FOUND");}'
98 * RESULT: Silent output without any probes listed.