tst.InvalidTraceID4.d.ksh revision 9512fe850e98fdd448c638ca63fdd92a8a510255
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
409512fe8ahldtrace=/usr/sbin/dtrace
419512fe8ahl
429512fe8ahl$dtrace -i 4-2
439512fe8ahl
449512fe8ahlstatus=$?
459512fe8ahl
469512fe8ahlecho $status
479512fe8ahl
489512fe8ahlif [ "$status" -ne 0 ]; then
499512fe8ahl	exit 0
509512fe8ahlfi
519512fe8ahl
529512fe8ahlecho $tst: dtrace failed
539512fe8ahlexit $status
54