xref: /illumos-gate/usr/src/cmd/dtrace/test/tst/common/dtraceUtil/man.ListProbesWithModules (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 -m option.
30 *
31 * SECTION: dtrace Utility/-l Option;
32 *	dtrace Utility/-m Option
33 *
34 * NOTES: Manually check:
35 *
36 * 1)
37 * /usr/sbin/dtrace -lm profile
38 * RESULT: Silent output without any probes listed.
39 *
40 * 2)
41 * /usr/sbin/dtrace -lm genunix
42 * RESULT: matching list of probes with module name genunix.
43 *
44 * 3)
45 * /usr/sbin/dtrace -lm vtrace:genunix
46 * RESULT: matching list of probes with provider vtrace and module
47 * genunix.
48 *
49 * 4) automated in tst.InvalidModule1.d.ksh
50 * /usr/sbin/dtrace -lm :genunix::
51 * RESULT: not a valid probe description
52 *
53 * 5) automated in tst.InvalidModule2.d.ksh
54 * /usr/sbin/dtrace -lm profile:::profile-97
55 * RESULT: not a valid probe description.
56 *
57 * 6)
58 * /usr/sbin/dtrace -lm genunix -lm unix
59 * RESULT: matching list of both genunix and unix probes.
60 *
61 * 7)
62 * /usr/sbin/dtrace -lm genunix -lm foounix
63 * RESULT: List of only genunix probes.
64 *
65 * 8)
66 * /usr/sbin/dtrace -lm foounix -lm unix
67 * RESULT: List of only unix probes.
68 *
69 * 9) automated in tst.InvalidModule3.d.ksh
70 * /usr/sbin/dtrace -lm fbt:des:des3_crunch_block:return
71 * RESULT: not a valid probe description.
72 *
73 * 10)
74 * /usr/sbin/dtrace -lm fbt:genunix'{printf("FOUND");}'
75 * RESULT: Silent output without any probes listed.
76 *
77 * 11)
78 * /usr/sbin/dtrace -lm genunix'{printf("FOUND");}'
79 * RESULT: Silent output without any probes listed.
80 *
81 * 12)
82 * /usr/sbin/dtrace -lm unix '{printf("FOUND");}'
83 * RESULT: List of only unix probes.
84 *
85 * 13) automated in tst.InvalidModule4.d.ksh
86 * /usr/sbin/dtrace -lm
87 * unix'/probefunc == "preempt"/{printf("FOUND");}'
88 * RESULT: not a valid probe description.
89 */
90