1178476Sjb/* 2178476Sjb * CDDL HEADER START 3178476Sjb * 4178476Sjb * The contents of this file are subject to the terms of the 5178476Sjb * Common Development and Distribution License (the "License"). 6178476Sjb * You may not use this file except in compliance with the License. 7178476Sjb * 8178476Sjb * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9178476Sjb * or http://www.opensolaris.org/os/licensing. 10178476Sjb * See the License for the specific language governing permissions 11178476Sjb * and limitations under the License. 12178476Sjb * 13178476Sjb * When distributing Covered Code, include this CDDL HEADER in each 14178476Sjb * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15178476Sjb * If applicable, add the following below this CDDL HEADER, with the 16178476Sjb * fields enclosed by brackets "[]" replaced with your own identifying 17178476Sjb * information: Portions Copyright [yyyy] [name of copyright owner] 18178476Sjb * 19178476Sjb * CDDL HEADER END 20178476Sjb */ 21178476Sjb 22178476Sjb/* 23178476Sjb * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24178476Sjb * Use is subject to license terms. 25178476Sjb */ 26178476Sjb 27178476Sjb#pragma ident "%Z%%M% %I% %E% SMI" 28178476Sjb 29178476Sjb/* 30178476Sjb * ASSERTION: 31178476Sjb * Using -f option. 32178476Sjb * 33178476Sjb * SECTION: dtrace Utility/-f Option 34178476Sjb * 35178476Sjb * NOTES: Manually check: 36178476Sjb * 37178476Sjb * 1) automated in tst.InvalidTraceFunc1.d.ksh 38178476Sjb * /usr/sbin/dtrace -f profile 39178476Sjb * RESULT: invalid probe specifier 40178476Sjb * 41178476Sjb * 2) automated in tst.InvalidTraceFunc2.d.ksh 42178476Sjb * /usr/sbin/dtrace -f genunix 43178476Sjb * RESULT: invalid probe specifier 44178476Sjb * 45178476Sjb * 3) 46178476Sjb * /usr/sbin/dtrace -f read 47178476Sjb * RESULT: tracing of matching list of probes with function read. 48178476Sjb * 49178476Sjb * 4) automated in tst.InvalidTraceFunc3.d.ksh 50178476Sjb * /usr/sbin/dtrace -f read: 51178476Sjb * RESULT: invalid probe specifier 52178476Sjb * 53178476Sjb * 5) 54178476Sjb * /usr/sbin/dtrace -f ::read 55178476Sjb * RESULT: tracing of matching list of probes with function read. 56178476Sjb * 57178476Sjb * 6) automated in tst.InvalidTraceFunc4.d.ksh 58178476Sjb * /usr/sbin/dtrace -f ::read: 59178476Sjb * RESULT: invalid probe specifier 60178476Sjb * 61178476Sjb * 7) 62178476Sjb * /usr/sbin/dtrace -f genunix:read 63178476Sjb * RESULT: tracing of probes with module genunix and function read. 64178476Sjb * 65178476Sjb * 8) 66178476Sjb * /usr/sbin/dtrace -f sysinfo:genunix:read 67178476Sjb * RESULT: tracing of probes with provider sysinfo, module genunix 68178476Sjb * and function read. 69178476Sjb * 70178476Sjb * 9) 71178476Sjb * /usr/sbin/dtrace -f sysinfo::read 72178476Sjb * RESULT: tracing of probes with provider sysinfo and function read. 73178476Sjb * 74178476Sjb * 10) automated in tst.InvalidTraceFunc5.d.ksh 75178476Sjb * /usr/sbin/dtrace -f :genunix:: 76178476Sjb * RESULT: invalid probe specifier 77178476Sjb * 78178476Sjb * 11) automated in tst.InvalidTraceFunc6.d.ksh 79178476Sjb * /usr/sbin/dtrace -f profile:::profile-97 80178476Sjb * RESULT: invalid probe specifier. 81178476Sjb * 82178476Sjb * 12) 83178476Sjb * /usr/sbin/dtrace -f read -f write 84178476Sjb * RESULT: tracing of both read and write probes. 85178476Sjb * 86178476Sjb * 13) 87178476Sjb * /usr/sbin/dtrace -f read -f fight 88178476Sjb * RESULT: Count of matching read probes and invalid probe specifier 89178476Sjb * for fight 90178476Sjb * 91178476Sjb * 14) automated in tst.InvalidTraceFunc8.d.ksh 92178476Sjb * /usr/sbin/dtrace -f fight -f write 93178476Sjb * RESULT: invalid probe specifier. 94178476Sjb * 95178476Sjb * 15) automated in tst.InvalidTraceFunc7.d.ksh 96178476Sjb * /usr/sbin/dtrace -f fbt:des:des3_crunch_block:return 97178476Sjb * RESULT: invalid probe specifier. 98178476Sjb * 99178476Sjb * 16) 100178476Sjb * /usr/sbin/dtrace -f read'{printf("FOUND");}' 101178476Sjb * RESULT: tracing of probes with function read and with message FOUND 102178476Sjb * 103178476Sjb * 17) 104178476Sjb * /usr/sbin/dtrace -f ::read'{printf("FOUND");}' 105178476Sjb * RESULT: tracing of probes with function read and with message FOUND 106178476Sjb * 107178476Sjb * 18) automated in tst.InvalidTraceFunc9.d.ksh 108178476Sjb * /usr/sbin/dtrace -f read '{printf("FOUND");}' 109178476Sjb * RESULT: invalid probe specifier. 110178476Sjb * 111178476Sjb * 19) 112178476Sjb * /usr/sbin/dtrace -f read'/probename == "entry"/{printf("FOUND");}' 113178476Sjb * RESULT: tracing of probes with function read, name entry and with 114178476Sjb * message FOUND 115178476Sjb */ 116