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