tst.InvalidId3.d.ksh revision 2633:71bab08d24b2
11412Ssundar#!/bin/ksh -p 21412Ssundar# 31412Ssundar# CDDL HEADER START 41412Ssundar# 51412Ssundar# The contents of this file are subject to the terms of the 61412Ssundar# Common Development and Distribution License (the "License"). 71412Ssundar# You may not use this file except in compliance with the License. 81412Ssundar# 91412Ssundar# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 101412Ssundar# or http://www.opensolaris.org/os/licensing. 111412Ssundar# See the License for the specific language governing permissions 121412Ssundar# and limitations under the License. 131412Ssundar# 141412Ssundar# When distributing Covered Code, include this CDDL HEADER in each 151412Ssundar# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 161412Ssundar# If applicable, add the following below this CDDL HEADER, with the 171412Ssundar# fields enclosed by brackets "[]" replaced with your own identifying 181412Ssundar# information: Portions Copyright [yyyy] [name of copyright owner] 191412Ssundar# 201412Ssundar# CDDL HEADER END 211412Ssundar# 221412Ssundar 231412Ssundar# 241412Ssundar# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 251412Ssundar# Use is subject to license terms. 261412Ssundar# 271412Ssundar 281412Ssundar#ident "%Z%%M% %I% %E% SMI" 291412Ssundar 301412Ssundar## 311412Ssundar# 321412Ssundar# ASSERTION: 331412Ssundar# The -li option can be used to list the probes from their ids. A 341412Ssundar# non-increasing range will not list any probes. 351412Ssundar# 361412Ssundar# SECTION: dtrace Utility/-l Option; 371412Ssundar# dtrace Utility/-i Option 381412Ssundar# 391412Ssundar## 401412Ssundar 411412Ssundardtrace=/usr/sbin/dtrace 421412Ssundar 431412Ssundar$dtrace -li 2-2 441412Ssundar 451412Ssundarstatus=$? 461412Ssundar 471412Ssundarecho $status 481412Ssundar 491412Ssundarif [ "$status" -ne 0 ]; then 501412Ssundar exit 0 511412Ssundarfi 521412Ssundar 531412Ssundarecho $tst: dtrace failed 541412Ssundarexit $status 551412Ssundar