4e8732935d428b2a70151b178a95cbba5d3839f5wrowe/*
19d8729755d7f4d9503029a628dacbbdabcd2264wrowe * CDDL HEADER START
167c53d624e82d105b1517e9599195a30ddb5de8stoddard *
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * The contents of this file are subject to the terms of the
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * Common Development and Distribution License (the "License").
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * You may not use this file except in compliance with the License.
4e8732935d428b2a70151b178a95cbba5d3839f5wrowe *
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * or http://www.opensolaris.org/os/licensing.
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * See the License for the specific language governing permissions
4e8732935d428b2a70151b178a95cbba5d3839f5wrowe * and limitations under the License.
167c53d624e82d105b1517e9599195a30ddb5de8stoddard *
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * When distributing Covered Code, include this CDDL HEADER in each
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * If applicable, add the following below this CDDL HEADER, with the
4e8732935d428b2a70151b178a95cbba5d3839f5wrowe * fields enclosed by brackets "[]" replaced with your own identifying
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * information: Portions Copyright [yyyy] [name of copyright owner]
167c53d624e82d105b1517e9599195a30ddb5de8stoddard *
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * CDDL HEADER END
4e8732935d428b2a70151b178a95cbba5d3839f5wrowe */
4e8732935d428b2a70151b178a95cbba5d3839f5wrowe
167c53d624e82d105b1517e9599195a30ddb5de8stoddard/*
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * Use is subject to license terms.
19d8729755d7f4d9503029a628dacbbdabcd2264wrowe */
167c53d624e82d105b1517e9599195a30ddb5de8stoddard
167c53d624e82d105b1517e9599195a30ddb5de8stoddard#pragma ident "%Z%%M% %I% %E% SMI"
167c53d624e82d105b1517e9599195a30ddb5de8stoddard
167c53d624e82d105b1517e9599195a30ddb5de8stoddard/*
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * ASSERTION:
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * Using -l option with -n option.
4e8732935d428b2a70151b178a95cbba5d3839f5wrowe *
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * SECTION: dtrace Utility/-l Option;
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * dtrace Utility/-n Option
167c53d624e82d105b1517e9599195a30ddb5de8stoddard *
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * NOTES: Manually check:
167c53d624e82d105b1517e9599195a30ddb5de8stoddard *
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * 1)
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * /usr/sbin/dtrace -ln profile
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * RESULT: Silent output without any probes listed.
9ec65cbae2f760e485a1c54df5b19853688d5c91wrowe *
9ec65cbae2f760e485a1c54df5b19853688d5c91wrowe * 2)
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * /usr/sbin/dtrace -ln genunix
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * RESULT: Silent output without any probes listed.
9ec65cbae2f760e485a1c54df5b19853688d5c91wrowe *
0bcc003d275c6b0a9060d43be89762b218cbc2c7wrowe * 3)
1f2f357528d122de2c7886a073b4eee8766d5c95wrowe * /usr/sbin/dtrace -ln read
1f2f357528d122de2c7886a073b4eee8766d5c95wrowe * RESULT: Silent output without any probes listed.
167c53d624e82d105b1517e9599195a30ddb5de8stoddard *
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * 4)
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * /usr/sbin/dtrace -ln BEGIN
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * RESULT: list of one probe with name BEGIN.
167c53d624e82d105b1517e9599195a30ddb5de8stoddard *
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * 5)
dcf1a2f80f16265f00fe147de1dbd91af9c32a42wrowe * /usr/sbin/dtrace -ln begin
dcf1a2f80f16265f00fe147de1dbd91af9c32a42wrowe * RESULT: Silent output without any probes listed.
0bcc003d275c6b0a9060d43be89762b218cbc2c7wrowe *
0bcc003d275c6b0a9060d43be89762b218cbc2c7wrowe * 6)
0bcc003d275c6b0a9060d43be89762b218cbc2c7wrowe * /usr/sbin/dtrace -ln genunix:read
0bcc003d275c6b0a9060d43be89762b218cbc2c7wrowe * RESULT: Silent output without any probes listed.
f1a6b66f00bc686cd247d727dfcc35eeaa58b535wrowe *
dcf1a2f80f16265f00fe147de1dbd91af9c32a42wrowe * 7)
f1a6b66f00bc686cd247d727dfcc35eeaa58b535wrowe * /usr/sbin/dtrace -ln genunix:read:
0bcc003d275c6b0a9060d43be89762b218cbc2c7wrowe * RESULT: matching list of probes with module genunix and
0bcc003d275c6b0a9060d43be89762b218cbc2c7wrowe * function read.
167c53d624e82d105b1517e9599195a30ddb5de8stoddard *
4e8732935d428b2a70151b178a95cbba5d3839f5wrowe * 8)
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * /usr/sbin/dtrace -ln sysinfo:genunix:read
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * RESULT: Silent output without any probes listed.
167c53d624e82d105b1517e9599195a30ddb5de8stoddard *
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * 9)
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * /usr/sbin/dtrace -ln sysinfo:genunix:read:
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * RESULT: matching list of probes with provider sysinfo, module
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * genunix and function read.
167c53d624e82d105b1517e9599195a30ddb5de8stoddard *
9ec65cbae2f760e485a1c54df5b19853688d5c91wrowe * 10) /usr/sbin/dtrace -ln :genunix::
9ec65cbae2f760e485a1c54df5b19853688d5c91wrowe * RESULT: matching list of probes with module genunix
167c53d624e82d105b1517e9599195a30ddb5de8stoddard *
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * 11)
26b9ccb55ff33097af4914f2e4bd36fec99a039dwrowe * /usr/sbin/dtrace -ln :genunix:
0bcc003d275c6b0a9060d43be89762b218cbc2c7wrowe * RESULT: Silent output without any probes listed.
1f2f357528d122de2c7886a073b4eee8766d5c95wrowe *
1f2f357528d122de2c7886a073b4eee8766d5c95wrowe * 12)
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * /usr/sbin/dtrace -ln ::read:
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * RESULT: matching list of probes with and function read.
167c53d624e82d105b1517e9599195a30ddb5de8stoddard *
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * 13)
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * /usr/sbin/dtrace -ln profile:::profile-97
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * RESULT: matching list of probes with provider profile and function
dcf1a2f80f16265f00fe147de1dbd91af9c32a42wrowe * profile-97
dcf1a2f80f16265f00fe147de1dbd91af9c32a42wrowe *
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * 14)
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * /usr/sbin/dtrace -ln read: -ln write:
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * RESULT: matching list of both read and write probes.
167c53d624e82d105b1517e9599195a30ddb5de8stoddard *
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * 15)
4e8732935d428b2a70151b178a95cbba5d3839f5wrowe * /usr/sbin/dtrace -ln read: -ln fight:
4e8732935d428b2a70151b178a95cbba5d3839f5wrowe * RESULT: List of only read probes.
167c53d624e82d105b1517e9599195a30ddb5de8stoddard *
167c53d624e82d105b1517e9599195a30ddb5de8stoddard * 16)
990e1969a428b8844e07aad088df41340cd009d4wrowe * /usr/sbin/dtrace -ln fight: -ln write:
4439ba95daf7b82794fe338726790e2dab89d119wrowe * RESULT: List of only write probes.
4439ba95daf7b82794fe338726790e2dab89d119wrowe *
4439ba95daf7b82794fe338726790e2dab89d119wrowe * 17)
4439ba95daf7b82794fe338726790e2dab89d119wrowe * /usr/sbin/dtrace -ln fbt:des:des3_crunch_block:return
4439ba95daf7b82794fe338726790e2dab89d119wrowe * RESULT: Silent output of only the header.
4439ba95daf7b82794fe338726790e2dab89d119wrowe *
4439ba95daf7b82794fe338726790e2dab89d119wrowe * 18)
4439ba95daf7b82794fe338726790e2dab89d119wrowe * /usr/sbin/dtrace -ln read:'{printf("FOUND");}'
4439ba95daf7b82794fe338726790e2dab89d119wrowe * RESULT: Silent output without any probes listed.
4439ba95daf7b82794fe338726790e2dab89d119wrowe *
4439ba95daf7b82794fe338726790e2dab89d119wrowe * 19)
4439ba95daf7b82794fe338726790e2dab89d119wrowe * /usr/sbin/dtrace -ln read:entry'{printf("FOUND");}'
4439ba95daf7b82794fe338726790e2dab89d119wrowe * RESULT: Silent output without any probes listed.
4439ba95daf7b82794fe338726790e2dab89d119wrowe *
4439ba95daf7b82794fe338726790e2dab89d119wrowe * 20)
4439ba95daf7b82794fe338726790e2dab89d119wrowe * /usr/sbin/dtrace -ln BEGIN'{Printf("FOUND");}'
4e37bfe24d9ab0f4dc6e3a76c9ec2bc4231a61b8wrowe * RESULT: Silent output without any probes listed.
4439ba95daf7b82794fe338726790e2dab89d119wrowe *
4439ba95daf7b82794fe338726790e2dab89d119wrowe * 21)
4439ba95daf7b82794fe338726790e2dab89d119wrowe * /usr/sbin/dtrace -ln BEGIN '{printf("FOUND");}'
4439ba95daf7b82794fe338726790e2dab89d119wrowe * RESULT: List of only BEGIN probe.
4439ba95daf7b82794fe338726790e2dab89d119wrowe *
4439ba95daf7b82794fe338726790e2dab89d119wrowe * 22)
4439ba95daf7b82794fe338726790e2dab89d119wrowe * /usr/sbin/dtrace -ln
4439ba95daf7b82794fe338726790e2dab89d119wrowe * BEGIN'/probename == "entry"/{printf("FOUND");}'
4439ba95daf7b82794fe338726790e2dab89d119wrowe * RESULT: Silent output without any probes listed.
4439ba95daf7b82794fe338726790e2dab89d119wrowe */
4e37bfe24d9ab0f4dc6e3a76c9ec2bc4231a61b8wrowe