tst.InvalidProvider4.d.ksh revision 2633:71bab08d24b2
198944Sobrien#!/bin/ksh -p 298944Sobrien# 319370Spst# CDDL HEADER START 498944Sobrien# 5130803Smarcel# The contents of this file are subject to the terms of the 6130803Smarcel# Common Development and Distribution License (the "License"). 719370Spst# You may not use this file except in compliance with the License. 898944Sobrien# 919370Spst# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1098944Sobrien# or http://www.opensolaris.org/os/licensing. 1198944Sobrien# See the License for the specific language governing permissions 1298944Sobrien# and limitations under the License. 1398944Sobrien# 1419370Spst# When distributing Covered Code, include this CDDL HEADER in each 1598944Sobrien# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1698944Sobrien# If applicable, add the following below this CDDL HEADER, with the 1798944Sobrien# fields enclosed by brackets "[]" replaced with your own identifying 1898944Sobrien# information: Portions Copyright [yyyy] [name of copyright owner] 1919370Spst# 2098944Sobrien# CDDL HEADER END 2198944Sobrien# 2298944Sobrien 2398944Sobrien# 2498944Sobrien# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2519370Spst# Use is subject to license terms. 2619370Spst# 2719370Spst 2819370Spst#ident "%Z%%M% %I% %E% SMI" 2919370Spst 3019370Spst## 3119370Spst# 3298944Sobrien# ASSERTION: 3319370Spst# The -lP option can be used to list the probes from their provider names. 3419370Spst# Invalid module names result in error. 3598944Sobrien# 3619370Spst# SECTION: dtrace Utility/-l Option; 3746283Sdfr# dtrace Utility/-P Option 3819370Spst# 3998944Sobrien## 4098944Sobrien 4119370Spstdtrace=/usr/sbin/dtrace 4298944Sobrien 4398944Sobrien$dtrace -lP profile'/probename == "profile-199"/{printf("FOUND");}' 4498944Sobrien 45130803Smarcelstatus=$? 46130803Smarcel 47130803Smarcelecho $status 4819370Spst 4919370Spstif [ "$status" -ne 0 ]; then 5019370Spst exit 0 5198944Sobrienfi 5219370Spst 5398944Sobrienecho $tst: dtrace failed 5419370Spstexit $status 5598944Sobrien