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 * Tracing a module using the -m option. 309512fe85Sahl * 319512fe85Sahl * SECTION: dtrace Utility/-m Option 329512fe85Sahl * 339512fe85Sahl * NOTES: Manually check: 349512fe85Sahl * 359512fe85Sahl * 1) automated in tst.InvalidTraceModule1.d.ksh 369512fe85Sahl * /usr/sbin/dtrace -m profile 379512fe85Sahl * RESULT: invalid probe specifier 389512fe85Sahl * 399512fe85Sahl * 2) 409512fe85Sahl * /usr/sbin/dtrace -m genunix 419512fe85Sahl * RESULT: trace of all probes with module genunix. 429512fe85Sahl * 439512fe85Sahl * 3) 449512fe85Sahl * /usr/sbin/dtrace -m vtrace:genunix 459512fe85Sahl * RESULT: trace of probes with provider vtrace and module genunix. 469512fe85Sahl * 479512fe85Sahl * 4) automated in tst.InvalidTraceModule2.d.ksh 489512fe85Sahl * /usr/sbin/dtrace -m :genunix:: 499512fe85Sahl * RESULT: invalid probe specifier 509512fe85Sahl * 519512fe85Sahl * 5) 529512fe85Sahl * /usr/sbin/dtrace -m :genunix 539512fe85Sahl * RESULT: trace of all probes with module genunix. 549512fe85Sahl * 559512fe85Sahl * 6) automated in tst.InvalidTraceModule3.d.ksh 569512fe85Sahl * /usr/sbin/dtrace -m genunix:: 579512fe85Sahl * RESULT: invalid probe specifier 589512fe85Sahl * 599512fe85Sahl * 7) automated in tst.InvalidTraceModule4.d.ksh 609512fe85Sahl * /usr/sbin/dtrace -m profile:::profile-97 619512fe85Sahl * RESULT: not a valid probe description. 629512fe85Sahl * 63*73b80b82SToomas Soome * 8) 649512fe85Sahl * /usr/sbin/dtrace -m genunix -m unix 659512fe85Sahl * RESULT: tracing of both genunix and unix probes. 669512fe85Sahl * 679512fe85Sahl * 9) 689512fe85Sahl * /usr/sbin/dtrace -m genunix -m foounix 699512fe85Sahl * RESULT: Number of probes matching the description genunix 709512fe85Sahl * and an invalid probe specifier for foounix. 719512fe85Sahl * 729512fe85Sahl * 10) automated in tst.InvalidTraceModule5.d.ksh 739512fe85Sahl * /usr/sbin/dtrace -m foounix -m unix 749512fe85Sahl * RESULT: invalid probe specifier for foounix. 759512fe85Sahl * 769512fe85Sahl * 11) automated in tst.InvalidTraceModule6.d.ksh 779512fe85Sahl * /usr/sbin/dtrace -m fbt:des:des3_crunch_block:return 789512fe85Sahl * RESULT: invalid probe description. 799512fe85Sahl * 809512fe85Sahl * 12) 819512fe85Sahl * /usr/sbin/dtrace -m fbt:genunix'{printf("FOUND");}' 829512fe85Sahl * RESULT: tracing of all the probes matching provider fbt and module 839512fe85Sahl * genunix. 849512fe85Sahl * 859512fe85Sahl * 13) 869512fe85Sahl * /usr/sbin/dtrace -m genunix'{printf("FOUND");}' 879512fe85Sahl * RESULT: tracing of all the probes matching module genunix with 889512fe85Sahl * message FOUND 899512fe85Sahl * 909512fe85Sahl * 14) 919512fe85Sahl * /usr/sbin/dtrace -m :genunix'{printf("FOUND");}' 929512fe85Sahl * RESULT: tracing of all the probes matching module genunix with 939512fe85Sahl * message FOUND 949512fe85Sahl * 959512fe85Sahl * 15) automated in tst.InvalidTraceModule7.d.ksh 969512fe85Sahl * /usr/sbin/dtrace -m genunix::'{printf("FOUND");}' 979512fe85Sahl * RESULT: invalid probe specifier. 989512fe85Sahl * 999512fe85Sahl * 16) automated in tst.InvalidTraceModule8.d.ksh 1009512fe85Sahl * /usr/sbin/dtrace -m genunix:'{printf("FOUND");}' 1019512fe85Sahl * RESULT: invalid probe specifier. 1029512fe85Sahl * 1039512fe85Sahl * 17) 1049512fe85Sahl * /usr/sbin/dtrace -m unix '{printf("FOUND");}' 1059512fe85Sahl * RESULT: invalid probe specifier. 1069512fe85Sahl * 1079512fe85Sahl * 18) 1089512fe85Sahl * /usr/sbin/dtrace -m 1099512fe85Sahl * unix'/probefunc == "preempt"/{printf("FOUND");}' 1109512fe85Sahl * RESULT: tracing of all the probes matching module genunix, 1119512fe85Sahl * probe function preempt with message FOUND. 1129512fe85Sahl */ 113