man.ListProbesWithModules revision 14ea49401f3c8c61422aefbda43809e275f60c6c
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync/*
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * CDDL HEADER START
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * The contents of this file are subject to the terms of the
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * Common Development and Distribution License (the "License").
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * You may not use this file except in compliance with the License.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * or http://www.opensolaris.org/os/licensing.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * See the License for the specific language governing permissions
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * and limitations under the License.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * When distributing Covered Code, include this CDDL HEADER in each
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * If applicable, add the following below this CDDL HEADER, with the
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * fields enclosed by brackets "[]" replaced with your own identifying
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * information: Portions Copyright [yyyy] [name of copyright owner]
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * CDDL HEADER END
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync */
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync/*
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * Use is subject to license terms.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync */
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#pragma ident "%Z%%M% %I% %E% SMI"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync/*
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * ASSERTION:
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * Using -l option with -m option.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * SECTION: dtrace Utility/-l Option;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * dtrace Utility/-m Option
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * NOTES: Manually check:
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * 1)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * /usr/sbin/dtrace -lm profile
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * RESULT: Silent output without any probes listed.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * 2)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * /usr/sbin/dtrace -lm genunix
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * RESULT: matching list of probes with module name genunix.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * 3)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * /usr/sbin/dtrace -lm vtrace:genunix
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * RESULT: matching list of probes with provider vtrace and module
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * genunix.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * 4) automated in tst.InvalidModule1.d.ksh
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * /usr/sbin/dtrace -lm :genunix::
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * RESULT: not a valid probe description
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * 5) automated in tst.InvalidModule2.d.ksh
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * /usr/sbin/dtrace -lm profile:::profile-97
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * RESULT: not a valid probe description.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * 6)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * /usr/sbin/dtrace -lm genunix -lm unix
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * RESULT: matching list of both genunix and unix probes.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * 7)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * /usr/sbin/dtrace -lm genunix -lm foounix
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * RESULT: List of only genunix probes.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * 8)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * /usr/sbin/dtrace -lm foounix -lm unix
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * RESULT: List of only unix probes.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * 9) automated in tst.InvalidModule3.d.ksh
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * /usr/sbin/dtrace -lm fbt:des:des3_crunch_block:return
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * RESULT: not a valid probe description.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * 10)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * /usr/sbin/dtrace -lm fbt:genunix'{printf("FOUND");}'
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * RESULT: Silent output without any probes listed.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * 11)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * /usr/sbin/dtrace -lm genunix'{printf("FOUND");}'
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * RESULT: Silent output without any probes listed.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * 12)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * /usr/sbin/dtrace -lm unix '{printf("FOUND");}'
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * RESULT: List of only unix probes.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * 13) automated in tst.InvalidModule4.d.ksh
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * /usr/sbin/dtrace -lm
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * unix'/probefunc == "preempt"/{printf("FOUND");}'
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * RESULT: not a valid probe description.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync */