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 -f option. 30 * 31 * SECTION: dtrace Utility/-l Option; 32 * dtrace Utility/-f Option 33 * 34 * NOTES: Manually check: 35 * 36 * 1) 37 * /usr/sbin/dtrace -lf profile 38 * RESULT: Silent output without any probes listed. 39 * 40 * 2) 41 * /usr/sbin/dtrace -lf genunix 42 * RESULT: Silent output without any probes listed. 43 * 44 * 3) 45 * /usr/sbin/dtrace -lf read 46 * RESULT: matching list of probes with function read. 47 * 48 * 4) 49 * /usr/sbin/dtrace -lf genunix:read 50 * RESULT: matching list of probes with module genunix and 51 * function read. 52 * 53 * 5) 54 * /usr/sbin/dtrace -lf sysinfo:genunix:read 55 * RESULT: matching list of probes with provider sysinfo, module 56 * genunix and function read. 57 * 58 * 6) 59 * /usr/sbin/dtrace -lf :genunix:: 60 * RESULT: Silent output without any probes listed. 61 * 62 * 7) 63 * /usr/sbin/dtrace -lf ::read: 64 * RESULT: Silent output without any probes listed. 65 * 66 * 8) 67 * /usr/sbin/dtrace -lf profile:::profile-97 68 * RESULT: not a valid probe description. 69 * 70 * 9) 71 * /usr/sbin/dtrace -lf read -lf write 72 * RESULT: matching list of both read and write probes. 73 * 74 * 10) 75 * /usr/sbin/dtrace -lf read -lm fight 76 * RESULT: List of only read probes. 77 * 78 * 11) 79 * /usr/sbin/dtrace -lf fight -lf write 80 * RESULT: List of only write probes. 81 * 82 * 12) Has been automated. 83 * /usr/sbin/dtrace -lf fbt:des:des3_crunch_block:return 84 * RESULT: not a valid probe description. 85 * 86 * 13) 87 * /usr/sbin/dtrace -lf read'{printf("FOUND");}' 88 * RESULT: Silent output without any probes listed. 89 * 90 * 14) 91 * /usr/sbin/dtrace -lf read '{printf("FOUND");}' 92 * RESULT: List of only read probes. 93 * 94 * 15) 95 * /usr/sbin/dtrace -lf read'/probename == "entry"/{printf("FOUND");}' 96 * RESULT: Silent output without any probes listed. 97 */ 98