tst.InvalidTraceID1.d.ksh revision 178477
11556Srgrimes#!/bin/ksh -p 21556Srgrimes# 31556Srgrimes# CDDL HEADER START 41556Srgrimes# 51556Srgrimes# The contents of this file are subject to the terms of the 61556Srgrimes# Common Development and Distribution License (the "License"). 71556Srgrimes# You may not use this file except in compliance with the License. 81556Srgrimes# 91556Srgrimes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 101556Srgrimes# or http://www.opensolaris.org/os/licensing. 111556Srgrimes# See the License for the specific language governing permissions 121556Srgrimes# and limitations under the License. 131556Srgrimes# 141556Srgrimes# When distributing Covered Code, include this CDDL HEADER in each 151556Srgrimes# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 161556Srgrimes# If applicable, add the following below this CDDL HEADER, with the 171556Srgrimes# fields enclosed by brackets "[]" replaced with your own identifying 181556Srgrimes# information: Portions Copyright [yyyy] [name of copyright owner] 191556Srgrimes# 201556Srgrimes# CDDL HEADER END 211556Srgrimes# 221556Srgrimes 231556Srgrimes# 241556Srgrimes# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 251556Srgrimes# Use is subject to license terms. 261556Srgrimes# 271556Srgrimes 281556Srgrimes#ident "%Z%%M% %I% %E% SMI" 291556Srgrimes 301556Srgrimes## 311556Srgrimes# 3217987Speter# ASSERTION: 3350471Speter# The -i option can be used to enable the trace of probes from their ids. A 341556Srgrimes# non-increasing range will not list any probes. 351556Srgrimes# 361556Srgrimes# SECTION: dtrace Utility/-i Option 371556Srgrimes# 38201053Sjilles## 39289159Sjilles 401556Srgrimesif [ $# != 1 ]; then 411556Srgrimes echo expected one argument: '<'dtrace-path'>' 421556Srgrimes exit 2 431556Srgrimesfi 441556Srgrimes 451556Srgrimesdtrace=$1 461556Srgrimes 471556Srgrimes$dtrace -i 0 481556Srgrimes 49253650Sjillesstatus=$? 50253650Sjilles 51194128Sjillesecho $status 52194128Sjilles 53194128Sjillesif [ "$status" -ne 0 ]; then 54194128Sjilles exit 0 55194128Sjillesfi 56279508Sjilles 571556Srgrimesecho $tst: dtrace failed 5890111Simpexit $status 5990111Simp