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 -n option.
33 * SECTION: dtrace Utility/-l Option;
34 * dtrace Utility/-n Option
36 * NOTES: Manually check:
39 * /usr/sbin/dtrace -ln profile
40 * RESULT: Silent output without any probes listed.
43 * /usr/sbin/dtrace -ln genunix
44 * RESULT: Silent output without any probes listed.
47 * /usr/sbin/dtrace -ln read
48 * RESULT: Silent output without any probes listed.
51 * /usr/sbin/dtrace -ln BEGIN
52 * RESULT: list of one probe with name BEGIN.
55 * /usr/sbin/dtrace -ln begin
56 * RESULT: Silent output without any probes listed.
59 * /usr/sbin/dtrace -ln genunix:read
60 * RESULT: Silent output without any probes listed.
63 * /usr/sbin/dtrace -ln genunix:read:
64 * RESULT: matching list of probes with module genunix and
68 * /usr/sbin/dtrace -ln sysinfo:genunix:read
69 * RESULT: Silent output without any probes listed.
72 * /usr/sbin/dtrace -ln sysinfo:genunix:read:
73 * RESULT: matching list of probes with provider sysinfo, module
74 * genunix and function read.
76 * 10) /usr/sbin/dtrace -ln :genunix::
77 * RESULT: matching list of probes with module genunix
80 * /usr/sbin/dtrace -ln :genunix:
81 * RESULT: Silent output without any probes listed.
84 * /usr/sbin/dtrace -ln ::read:
85 * RESULT: matching list of probes with and function read.
88 * /usr/sbin/dtrace -ln profile:::profile-97
89 * RESULT: matching list of probes with provider profile and function
93 * /usr/sbin/dtrace -ln read: -ln write:
94 * RESULT: matching list of both read and write probes.
97 * /usr/sbin/dtrace -ln read: -ln fight:
98 * RESULT: List of only read probes.
101 * /usr/sbin/dtrace -ln fight: -ln write:
102 * RESULT: List of only write probes.
105 * /usr/sbin/dtrace -ln fbt:des:des3_crunch_block:return
106 * RESULT: Silent output of only the header.
109 * /usr/sbin/dtrace -ln read:'{printf("FOUND");}'
110 * RESULT: Silent output without any probes listed.
113 * /usr/sbin/dtrace -ln read:entry'{printf("FOUND");}'
114 * RESULT: Silent output without any probes listed.
117 * /usr/sbin/dtrace -ln BEGIN'{Printf("FOUND");}'
118 * RESULT: Silent output without any probes listed.
121 * /usr/sbin/dtrace -ln BEGIN '{printf("FOUND");}'
122 * RESULT: List of only BEGIN probe.
125 * /usr/sbin/dtrace -ln
126 * BEGIN'/probename == "entry"/{printf("FOUND");}'
127 * RESULT: Silent output without any probes listed.