tst.InvalidTraceProvider1.d.ksh revision 9512fe850e98fdd448c638ca63fdd92a8a510255
fa9e4066f08beec538e775443c5be79dd423fcabahrens#!/bin/ksh -p
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER START
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# The contents of this file are subject to the terms of the
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# Common Development and Distribution License (the "License").
fa9e4066f08beec538e775443c5be79dd423fcabahrens# You may not use this file except in compliance with the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fa9e4066f08beec538e775443c5be79dd423fcabahrens# or http://www.opensolaris.org/os/licensing.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# See the License for the specific language governing permissions
fa9e4066f08beec538e775443c5be79dd423fcabahrens# and limitations under the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# When distributing Covered Code, include this CDDL HEADER in each
fa9e4066f08beec538e775443c5be79dd423fcabahrens# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# If applicable, add the following below this CDDL HEADER, with the
fa9e4066f08beec538e775443c5be79dd423fcabahrens# fields enclosed by brackets "[]" replaced with your own identifying
fa9e4066f08beec538e775443c5be79dd423fcabahrens# information: Portions Copyright [yyyy] [name of copyright owner]
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER END
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden#
fa9e4066f08beec538e775443c5be79dd423fcabahrens
06e0070d70ba2ee95f5aa2645423eb2cf1546788Mark Shellenbaum#
8df0bcf0df7622a075cc6e52f659d2fcfdd08cdcPaul Dagnelie# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
bc9014e6a81272073b9854d9f65dd59e18d18c35Justin Gibbs# Use is subject to license terms.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens#ident "%Z%%M% %I% %E% SMI"
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens##
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# ASSERTION:
fa9e4066f08beec538e775443c5be79dd423fcabahrens# The -P option can be used to list the probes from their provider names.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Invalid module names result in error.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
bf16b11e8deb633dd6c4296d46e92399d1582df4Matthew Ahrens# SECTION: dtrace Utility/-P Option;
43466aae47bfcd2ad9bf501faec8e75c08095e4fMax Grossman#
fa9e4066f08beec538e775443c5be79dd423fcabahrens##
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensdtrace=/usr/sbin/dtrace
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens$dtrace -P foofile
c717a56157ae0e6fca6a1e3689ae1edc385716a3maybee
c717a56157ae0e6fca6a1e3689ae1edc385716a3maybeestatus=$?
c717a56157ae0e6fca6a1e3689ae1edc385716a3maybee
c717a56157ae0e6fca6a1e3689ae1edc385716a3maybeeecho $status
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensif [ "$status" -ne 0 ]; then
c717a56157ae0e6fca6a1e3689ae1edc385716a3maybee exit 0
c717a56157ae0e6fca6a1e3689ae1edc385716a3maybeefi
c717a56157ae0e6fca6a1e3689ae1edc385716a3maybee
fa9e4066f08beec538e775443c5be79dd423fcabahrensecho $tst: dtrace failed
fa9e4066f08beec538e775443c5be79dd423fcabahrensexit $status
c717a56157ae0e6fca6a1e3689ae1edc385716a3maybee