tst.ZeroProbeIdentfier.d.ksh revision 14ea49401f3c8c61422aefbda43809e275f60c6c
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsync#!/bin/ksh -p
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsync#
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsync# CDDL HEADER START
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsync#
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsync# The contents of this file are subject to the terms of the
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsync# Common Development and Distribution License (the "License").
e64031e20c39650a7bc902a3e1aba613b9415deevboxsync# You may not use this file except in compliance with the License.
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsync#
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsync# or http://www.opensolaris.org/os/licensing.
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsync# See the License for the specific language governing permissions
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsync# and limitations under the License.
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsync#
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsync# When distributing Covered Code, include this CDDL HEADER in each
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsync# If applicable, add the following below this CDDL HEADER, with the
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
b0ad0bbadf3a5b5258acda1bfe16f0ad8bee5ff0vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
b0ad0bbadf3a5b5258acda1bfe16f0ad8bee5ff0vboxsync#
b0ad0bbadf3a5b5258acda1bfe16f0ad8bee5ff0vboxsync# CDDL HEADER END
b0ad0bbadf3a5b5258acda1bfe16f0ad8bee5ff0vboxsync#
b0ad0bbadf3a5b5258acda1bfe16f0ad8bee5ff0vboxsync
b0ad0bbadf3a5b5258acda1bfe16f0ad8bee5ff0vboxsync#
a55af63ead2dcca370bfc0dfe49771d9dcc61b93vboxsync# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
e0778e583cb4a0bdc9bcc48f5957e00a01108388vboxsync# Use is subject to license terms.
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsync#
a55af63ead2dcca370bfc0dfe49771d9dcc61b93vboxsync
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsync#ident "%Z%%M% %I% %E% SMI"
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsync
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsync##
b0ad0bbadf3a5b5258acda1bfe16f0ad8bee5ff0vboxsync#
b0ad0bbadf3a5b5258acda1bfe16f0ad8bee5ff0vboxsync# ASSERTION:
b0ad0bbadf3a5b5258acda1bfe16f0ad8bee5ff0vboxsync# Testing -i option with zero probe identifier.
b0ad0bbadf3a5b5258acda1bfe16f0ad8bee5ff0vboxsync#
b0ad0bbadf3a5b5258acda1bfe16f0ad8bee5ff0vboxsync# SECTION: dtrace Utility/-i Option
b0ad0bbadf3a5b5258acda1bfe16f0ad8bee5ff0vboxsync#
b0ad0bbadf3a5b5258acda1bfe16f0ad8bee5ff0vboxsync##
b0ad0bbadf3a5b5258acda1bfe16f0ad8bee5ff0vboxsync
57958eb1223628d507daf47ed31ea25c4e8c6da9vboxsyncif [ $# != 1 ]; then
b0ad0bbadf3a5b5258acda1bfe16f0ad8bee5ff0vboxsync echo expected one argument: '<'dtrace-path'>'
22d7a125fcbe8650770ac700108b6f27ca1f0dfdvboxsync exit 2
b0ad0bbadf3a5b5258acda1bfe16f0ad8bee5ff0vboxsyncfi
b0ad0bbadf3a5b5258acda1bfe16f0ad8bee5ff0vboxsync
b0ad0bbadf3a5b5258acda1bfe16f0ad8bee5ff0vboxsyncdtrace=$1
b0ad0bbadf3a5b5258acda1bfe16f0ad8bee5ff0vboxsync
b0ad0bbadf3a5b5258acda1bfe16f0ad8bee5ff0vboxsync$dtrace -i 0
b0ad0bbadf3a5b5258acda1bfe16f0ad8bee5ff0vboxsync
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsyncif [ $? -ne 1 ]; then
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsync echo $tst: dtrace failed
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsync exit 1
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsyncfi
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsync
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsyncexit 0
2711c80499bbd95e3da4a6cd2dffd9f81a5dce98vboxsync