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 -P option to trace all the probes provided by the particular 30 * provider. 31 * 32 * SECTION: dtrace Utility/-P Option 33 * 34 * NOTES: Manually check: 35 * 36 * 1) 37 * /usr/sbin/dtrace -P profile 38 * RESULT: Trace of all profile probes. 39 * 40 * 2) automated in tst.InvalidTraceProvider1.d.ksh 41 * /usr/sbin/dtrace -P foofile 42 * RESULT: invalid probe specifier 43 * 44 * 3) automated in tst.InvalidTraceProvider2.d.ksh 45 * /usr/sbin/dtrace -P profile::: 46 * RESULT: invalid probe specifier 47 * 48 * 4) automated in tst.InvalidTraceProvider3.d.ksh 49 * /usr/sbin/dtrace -P profile:::profile-97 50 * RESULT: invalid probe specifier 51 * 52 * 5) 53 * /usr/sbin/dtrace -P profile -P syscall 54 * RESULT: matching traces of both profile and syscall probes. 55 * 56 * 6) 57 * /usr/sbin/dtrace -P profile -P foofile 58 * RESULT: Count of profile probes that matched and invalid 59 * probe specifier for foofile and no tracing. 60 * 61 * 7) automated in tst.InvalidTraceProvider4.d.ksh 62 * /usr/sbin/dtrace -P fbt:des:des3_crunch_block:return 63 * RESULT: invalid probe specifier 64 * 65 * 8) 66 * /usr/sbin/dtrace -P profile'{printf("FOUND");}' 67 * RESULT: Traces of all the matching profile probes with the 68 * FOUND message. 69 * 70 * 9) automated in tst.InvalidTraceProvider5.d.ksh 71 * /usr/sbin/dtrace -P profile '{printf("FOUND");}' 72 * RESULT: invalid probe specifier 73 * 74 * 10) 75 * /usr/sbin/dtrace -P 76 * profile'/probename == "profile-199"/{printf("FOUND");}' 77 * RESULT: Traces of the matching profile probe with the 78 * FOUND message. 79 * 80 * 81 */ 82