xref: /illumos-gate/usr/src/cmd/dtrace/test/tst/common/dtraceUtil/man.ListProbesWithNames (revision 73b80b821da76082173547dd650e417f6916eb8b)
1/*
2 * CDDL HEADER START
3 *
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.
7 *
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.
12 *
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]
18 *
19 * CDDL HEADER END
20 */
21
22/*
23 * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24 * Use is subject to license terms.
25 */
26
27/*
28 * ASSERTION:
29 * Using -l option with -n option.
30 *
31 * SECTION: dtrace Utility/-l Option;
32 * 	dtrace Utility/-n Option
33 *
34 * NOTES: Manually check:
35 *
36 * 1)
37 * /usr/sbin/dtrace -ln profile
38 * RESULT: Silent output without any probes listed.
39 *
40 * 2)
41 * /usr/sbin/dtrace -ln genunix
42 * RESULT: Silent output without any probes listed.
43 *
44 * 3)
45 * /usr/sbin/dtrace -ln read
46 * RESULT: Silent output without any probes listed.
47 *
48 * 4)
49 * /usr/sbin/dtrace -ln BEGIN
50 * RESULT: list of one probe with name BEGIN.
51 *
52 * 5)
53 * /usr/sbin/dtrace -ln begin
54 * RESULT: Silent output without any probes listed.
55 *
56 * 6)
57 * /usr/sbin/dtrace -ln genunix:read
58 * RESULT: Silent output without any probes listed.
59 *
60 * 7)
61 * /usr/sbin/dtrace -ln genunix:read:
62 * RESULT: matching list of probes with module genunix and
63 * function read.
64 *
65 * 8)
66 * /usr/sbin/dtrace -ln sysinfo:genunix:read
67 * RESULT: Silent output without any probes listed.
68 *
69 * 9)
70 * /usr/sbin/dtrace -ln sysinfo:genunix:read:
71 * RESULT: matching list of probes with provider sysinfo, module
72 * genunix and function read.
73 *
74 * 10) /usr/sbin/dtrace -ln :genunix::
75 * RESULT: matching list of probes with module genunix
76 *
77 * 11)
78 * /usr/sbin/dtrace -ln :genunix:
79 * RESULT: Silent output without any probes listed.
80 *
81 * 12)
82 * /usr/sbin/dtrace -ln ::read:
83 * RESULT: matching list of probes with and function read.
84 *
85 * 13)
86 * /usr/sbin/dtrace -ln profile:::profile-97
87 * RESULT: matching list of probes with provider profile and function
88 * profile-97
89 *
90 * 14)
91 * /usr/sbin/dtrace -ln read: -ln write:
92 * RESULT: matching list of both read and write probes.
93 *
94 * 15)
95 * /usr/sbin/dtrace -ln read: -ln fight:
96 * RESULT: List of only read probes.
97 *
98 * 16)
99 * /usr/sbin/dtrace -ln fight: -ln write:
100 * RESULT: List of only write probes.
101 *
102 * 17)
103 * /usr/sbin/dtrace -ln fbt:des:des3_crunch_block:return
104 * RESULT: Silent output of only the header.
105 *
106 * 18)
107 * /usr/sbin/dtrace -ln read:'{printf("FOUND");}'
108 * RESULT: Silent output without any probes listed.
109 *
110 * 19)
111 * /usr/sbin/dtrace -ln read:entry'{printf("FOUND");}'
112 * RESULT: Silent output without any probes listed.
113 *
114 * 20)
115 * /usr/sbin/dtrace -ln BEGIN'{Printf("FOUND");}'
116 * RESULT: Silent output without any probes listed.
117 *
118 * 21)
119 * /usr/sbin/dtrace -ln BEGIN '{printf("FOUND");}'
120 * RESULT: List of only BEGIN probe.
121 *
122 * 22)
123 * /usr/sbin/dtrace -ln
124 * BEGIN'/probename == "entry"/{printf("FOUND");}'
125 * RESULT: Silent output without any probes listed.
126 */
127