19512fe85Sahl/* 29512fe85Sahl * CDDL HEADER START 39512fe85Sahl * 49512fe85Sahl * The contents of this file are subject to the terms of the 59512fe85Sahl * Common Development and Distribution License (the "License"). 69512fe85Sahl * You may not use this file except in compliance with the License. 79512fe85Sahl * 89512fe85Sahl * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 99512fe85Sahl * or http://www.opensolaris.org/os/licensing. 109512fe85Sahl * See the License for the specific language governing permissions 119512fe85Sahl * and limitations under the License. 129512fe85Sahl * 139512fe85Sahl * When distributing Covered Code, include this CDDL HEADER in each 149512fe85Sahl * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 159512fe85Sahl * If applicable, add the following below this CDDL HEADER, with the 169512fe85Sahl * fields enclosed by brackets "[]" replaced with your own identifying 179512fe85Sahl * information: Portions Copyright [yyyy] [name of copyright owner] 189512fe85Sahl * 199512fe85Sahl * CDDL HEADER END 209512fe85Sahl */ 219512fe85Sahl 229512fe85Sahl/* 239512fe85Sahl * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 249512fe85Sahl * Use is subject to license terms. 259512fe85Sahl */ 269512fe85Sahl 279512fe85Sahl/* 289512fe85Sahl * ASSERTION: 299512fe85Sahl * Using -f option. 309512fe85Sahl * 319512fe85Sahl * SECTION: dtrace Utility/-f Option 329512fe85Sahl * 339512fe85Sahl * NOTES: Manually check: 349512fe85Sahl * 359512fe85Sahl * 1) automated in tst.InvalidTraceFunc1.d.ksh 369512fe85Sahl * /usr/sbin/dtrace -f profile 379512fe85Sahl * RESULT: invalid probe specifier 389512fe85Sahl * 399512fe85Sahl * 2) automated in tst.InvalidTraceFunc2.d.ksh 409512fe85Sahl * /usr/sbin/dtrace -f genunix 419512fe85Sahl * RESULT: invalid probe specifier 429512fe85Sahl * 439512fe85Sahl * 3) 449512fe85Sahl * /usr/sbin/dtrace -f read 459512fe85Sahl * RESULT: tracing of matching list of probes with function read. 469512fe85Sahl * 479512fe85Sahl * 4) automated in tst.InvalidTraceFunc3.d.ksh 489512fe85Sahl * /usr/sbin/dtrace -f read: 499512fe85Sahl * RESULT: invalid probe specifier 509512fe85Sahl * 519512fe85Sahl * 5) 529512fe85Sahl * /usr/sbin/dtrace -f ::read 539512fe85Sahl * RESULT: tracing of matching list of probes with function read. 549512fe85Sahl * 559512fe85Sahl * 6) automated in tst.InvalidTraceFunc4.d.ksh 569512fe85Sahl * /usr/sbin/dtrace -f ::read: 579512fe85Sahl * RESULT: invalid probe specifier 589512fe85Sahl * 599512fe85Sahl * 7) 609512fe85Sahl * /usr/sbin/dtrace -f genunix:read 619512fe85Sahl * RESULT: tracing of probes with module genunix and function read. 629512fe85Sahl * 639512fe85Sahl * 8) 649512fe85Sahl * /usr/sbin/dtrace -f sysinfo:genunix:read 659512fe85Sahl * RESULT: tracing of probes with provider sysinfo, module genunix 669512fe85Sahl * and function read. 679512fe85Sahl * 689512fe85Sahl * 9) 699512fe85Sahl * /usr/sbin/dtrace -f sysinfo::read 709512fe85Sahl * RESULT: tracing of probes with provider sysinfo and function read. 719512fe85Sahl * 729512fe85Sahl * 10) automated in tst.InvalidTraceFunc5.d.ksh 739512fe85Sahl * /usr/sbin/dtrace -f :genunix:: 749512fe85Sahl * RESULT: invalid probe specifier 759512fe85Sahl * 769512fe85Sahl * 11) automated in tst.InvalidTraceFunc6.d.ksh 779512fe85Sahl * /usr/sbin/dtrace -f profile:::profile-97 789512fe85Sahl * RESULT: invalid probe specifier. 799512fe85Sahl * 80*73b80b82SToomas Soome * 12) 819512fe85Sahl * /usr/sbin/dtrace -f read -f write 829512fe85Sahl * RESULT: tracing of both read and write probes. 839512fe85Sahl * 849512fe85Sahl * 13) 859512fe85Sahl * /usr/sbin/dtrace -f read -f fight 869512fe85Sahl * RESULT: Count of matching read probes and invalid probe specifier 879512fe85Sahl * for fight 889512fe85Sahl * 899512fe85Sahl * 14) automated in tst.InvalidTraceFunc8.d.ksh 909512fe85Sahl * /usr/sbin/dtrace -f fight -f write 919512fe85Sahl * RESULT: invalid probe specifier. 929512fe85Sahl * 939512fe85Sahl * 15) automated in tst.InvalidTraceFunc7.d.ksh 949512fe85Sahl * /usr/sbin/dtrace -f fbt:des:des3_crunch_block:return 959512fe85Sahl * RESULT: invalid probe specifier. 969512fe85Sahl * 979512fe85Sahl * 16) 989512fe85Sahl * /usr/sbin/dtrace -f read'{printf("FOUND");}' 999512fe85Sahl * RESULT: tracing of probes with function read and with message FOUND 1009512fe85Sahl * 1019512fe85Sahl * 17) 1029512fe85Sahl * /usr/sbin/dtrace -f ::read'{printf("FOUND");}' 1039512fe85Sahl * RESULT: tracing of probes with function read and with message FOUND 1049512fe85Sahl * 1059512fe85Sahl * 18) automated in tst.InvalidTraceFunc9.d.ksh 1069512fe85Sahl * /usr/sbin/dtrace -f read '{printf("FOUND");}' 1079512fe85Sahl * RESULT: invalid probe specifier. 1089512fe85Sahl * 1099512fe85Sahl * 19) 1109512fe85Sahl * /usr/sbin/dtrace -f read'/probename == "entry"/{printf("FOUND");}' 1119512fe85Sahl * RESULT: tracing of probes with function read, name entry and with 1129512fe85Sahl * message FOUND 1139512fe85Sahl */ 114