]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/dtraceUtil/man.ListProbesWithFunctions
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / cddl / contrib / opensolaris / cmd / dtrace / test / tst / common / dtraceUtil / man.ListProbesWithFunctions
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 #pragma ident   "%Z%%M% %I%     %E% SMI"
28
29 /*
30  * ASSERTION:
31  * Using -l option with -f option.
32  *
33  * SECTION: dtrace Utility/-l Option;
34  *      dtrace Utility/-f Option
35  *
36  * NOTES: Manually check:
37  *
38  * 1)
39  * /usr/sbin/dtrace -lf profile
40  * RESULT: Silent output without any probes listed.
41  *
42  * 2)
43  * /usr/sbin/dtrace -lf genunix
44  * RESULT: Silent output without any probes listed.
45  *
46  * 3)
47  * /usr/sbin/dtrace -lf read
48  * RESULT: matching list of probes with function read.
49  *
50  * 4)
51  * /usr/sbin/dtrace -lf genunix:read
52  * RESULT: matching list of probes with module genunix and
53  * function read.
54  *
55  * 5)
56  * /usr/sbin/dtrace -lf sysinfo:genunix:read
57  * RESULT: matching list of probes with provider sysinfo, module
58  * genunix and function read.
59  *
60  * 6)
61  * /usr/sbin/dtrace -lf :genunix::
62  * RESULT: Silent output without any probes listed.
63  *
64  * 7)
65  * /usr/sbin/dtrace -lf ::read:
66  * RESULT: Silent output without any probes listed.
67  *
68  * 8)
69  * /usr/sbin/dtrace -lf profile:::profile-97
70  * RESULT: not a valid probe description.
71  *
72  * 9)
73  * /usr/sbin/dtrace -lf read -lf write
74  * RESULT: matching list of both read and write probes.
75  *
76  * 10)
77  * /usr/sbin/dtrace -lf read -lm fight
78  * RESULT: List of only read probes.
79  *
80  * 11)
81  * /usr/sbin/dtrace -lf fight -lf write
82  * RESULT: List of only write probes.
83  *
84  * 12) Has been automated.
85  * /usr/sbin/dtrace -lf fbt:des:des3_crunch_block:return
86  * RESULT: not a valid probe description.
87  *
88  * 13)
89  * /usr/sbin/dtrace -lf read'{printf("FOUND");}'
90  * RESULT: Silent output without any probes listed.
91  *
92  * 14)
93  * /usr/sbin/dtrace -lf read '{printf("FOUND");}'
94  * RESULT: List of only read probes.
95  *
96  * 15)
97  * /usr/sbin/dtrace -lf read'/probename == "entry"/{printf("FOUND");}'
98  * RESULT: Silent output without any probes listed.
99  */