tst.InvalidTraceID1.d.ksh revision 23b5c241225a8ade2b6b9f06ebb891ee459e3b02
19512fe8ahl#!/bin/ksh -p
29512fe8ahl#
39512fe8ahl# CDDL HEADER START
49512fe8ahl#
59512fe8ahl# The contents of this file are subject to the terms of the
69512fe8ahl# Common Development and Distribution License (the "License").
79512fe8ahl# You may not use this file except in compliance with the License.
89512fe8ahl#
99512fe8ahl# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
109512fe8ahl# or http://www.opensolaris.org/os/licensing.
119512fe8ahl# See the License for the specific language governing permissions
129512fe8ahl# and limitations under the License.
139512fe8ahl#
149512fe8ahl# When distributing Covered Code, include this CDDL HEADER in each
159512fe8ahl# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
169512fe8ahl# If applicable, add the following below this CDDL HEADER, with the
179512fe8ahl# fields enclosed by brackets "[]" replaced with your own identifying
189512fe8ahl# information: Portions Copyright [yyyy] [name of copyright owner]
199512fe8ahl#
209512fe8ahl# CDDL HEADER END
219512fe8ahl#
229512fe8ahl
239512fe8ahl#
249512fe8ahl# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
259512fe8ahl# Use is subject to license terms.
269512fe8ahl#
279512fe8ahl
289512fe8ahl#ident	"%Z%%M%	%I%	%E% SMI"
299512fe8ahl
309512fe8ahl##
319512fe8ahl#
329512fe8ahl# ASSERTION:
339512fe8ahl# The -i option can be used to enable the trace of probes from their ids. A
349512fe8ahl# non-increasing range will not list any probes.
359512fe8ahl#
369512fe8ahl# SECTION: dtrace Utility/-i Option
379512fe8ahl#
389512fe8ahl##
399512fe8ahl
4023b5c24tomeeif [ $# != 1 ]; then
4123b5c24tomee	echo expected one argument: '<'dtrace-path'>'
4223b5c24tomee	exit 2
4323b5c24tomeefi
4423b5c24tomee
4523b5c24tomeedtrace=$1
469512fe8ahl
479512fe8ahl$dtrace -i 0
489512fe8ahl
499512fe8ahlstatus=$?
509512fe8ahl
519512fe8ahlecho $status
529512fe8ahl
539512fe8ahlif [ "$status" -ne 0 ]; then
549512fe8ahl	exit 0
559512fe8ahlfi
569512fe8ahl
579512fe8ahlecho $tst: dtrace failed
589512fe8ahlexit $status
59