tst.InvalidTraceID5.d.ksh revision 9512fe850e98fdd448c638ca63fdd92a8a510255
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end#!/bin/ksh -p
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end#
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end# CDDL HEADER START
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end#
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end# The contents of this file are subject to the terms of the
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end# Common Development and Distribution License (the "License").
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end# You may not use this file except in compliance with the License.
96ad5d81ee4a2cc66a4ae19893efc8aa6d06fae7jailletc#
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end# or http://www.opensolaris.org/os/licensing.
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# See the License for the specific language governing permissions
2e545ce2450a9953665f701bb05350f0d3f26275nd# and limitations under the License.
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen#
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# When distributing Covered Code, include this CDDL HEADER in each
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end# If applicable, add the following below this CDDL HEADER, with the
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen# fields enclosed by brackets "[]" replaced with your own identifying
3f08db06526d6901aa08c110b5bc7dde6bc39905nd# information: Portions Copyright [yyyy] [name of copyright owner]
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end#
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end# CDDL HEADER END
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end#
3f08db06526d6901aa08c110b5bc7dde6bc39905nd
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end#
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end# Use is subject to license terms.
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end#
053bfa8a288528fafab2b7a032c15116bb5de711nd
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end#ident "%Z%%M% %I% %E% SMI"
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end
d474d8ef01ec5c2a09341cd148851ed383c3287crbowen##
d474d8ef01ec5c2a09341cd148851ed383c3287crbowen#
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end# ASSERTION:
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end# The -i option can be used to enable the trace of probes from their ids. A
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end# non-increasing range will not list any probes.
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end#
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end# SECTION: dtrace Utility/-i Option
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end#
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end##
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1enddtrace=/usr/sbin/dtrace
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end$dtrace -i 2-2
b43f840409794ed298e8634f6284741f193b6c4ftakashi
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1endstatus=$?
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1endecho $status
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1endif [ "$status" -ne 0 ]; then
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end exit 0
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1endfi
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1endecho $tst: dtrace failed
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1endexit $status
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end