1210753Srpaulo#!/bin/ksh -p 2210753Srpaulo# 3210753Srpaulo# CDDL HEADER START 4210753Srpaulo# 5210753Srpaulo# The contents of this file are subject to the terms of the 6210753Srpaulo# Common Development and Distribution License (the "License"). 7210753Srpaulo# You may not use this file except in compliance with the License. 8210753Srpaulo# 9210753Srpaulo# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10210753Srpaulo# or http://www.opensolaris.org/os/licensing. 11210753Srpaulo# See the License for the specific language governing permissions 12210753Srpaulo# and limitations under the License. 13210753Srpaulo# 14210753Srpaulo# When distributing Covered Code, include this CDDL HEADER in each 15210753Srpaulo# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16210753Srpaulo# If applicable, add the following below this CDDL HEADER, with the 17210753Srpaulo# fields enclosed by brackets "[]" replaced with your own identifying 18210753Srpaulo# information: Portions Copyright [yyyy] [name of copyright owner] 19210753Srpaulo# 20210753Srpaulo# CDDL HEADER END 21210753Srpaulo# 22210753Srpaulo 23210753Srpaulo# 24210753Srpaulo# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 25210753Srpaulo# Use is subject to license terms. 26210753Srpaulo# 27210753Srpaulo 28210753Srpauloif [ $# != 1 ]; then 29210753Srpaulo echo expected one argument: '<'dtrace-path'>' 30210753Srpaulo exit 2 31210753Srpaulofi 32210753Srpaulo 33210753Srpaulodtrace=$1 34210753Srpaulo 35210753Srpaulo# 36210753Srpaulo# Make sure we kill a process if the dtrace(1M) command fails. 37210753Srpaulo# 38210753Srpaulo 39210753Srpaulorc=`$dtrace -c date -n jarod 2>/dev/null | /usr/bin/wc -l` 40210753Srpaulo 41210753Srpauloexit $rc 42