tst.probattrs.d revision 2633:71bab08d24b2
1194612Sed/* 2194612Sed * CDDL HEADER START 3194612Sed * 4194612Sed * The contents of this file are subject to the terms of the 5194612Sed * Common Development and Distribution License (the "License"). 6194612Sed * You may not use this file except in compliance with the License. 7194612Sed * 8194612Sed * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9194612Sed * or http://www.opensolaris.org/os/licensing. 10202878Srdivacky * See the License for the specific language governing permissions 11195340Sed * and limitations under the License. 12195340Sed * 13194612Sed * When distributing Covered Code, include this CDDL HEADER in each 14194612Sed * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15194612Sed * If applicable, add the following below this CDDL HEADER, with the 16249423Sdim * fields enclosed by brackets "[]" replaced with your own identifying 17249423Sdim * information: Portions Copyright [yyyy] [name of copyright owner] 18194612Sed * 19249423Sdim * CDDL HEADER END 20249423Sdim */ 21249423Sdim 22202878Srdivacky/* 23194612Sed * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24194612Sed * Use is subject to license terms. 25194612Sed */ 26194612Sed 27194612Sed#pragma ident "%Z%%M% %I% %E% SMI" 28195340Sed 29249423Sdim/* 30218893Sdim * ASSERTION: 31195340Sed * Simple profile provider test. 32195340Sed * print the 'probeprov, probemod, probefunc, probename' at once. 33195340Sed * Match expected output in tst.probattrs.d.out 34195340Sed * 35194612Sed * 36206274Srdivacky * SECTION: profile Provider/tick-n probes; 37234353Sdim * Variables/Built-in Variables 38234353Sdim * 39234353Sdim */ 40234353Sdim 41234353Sdim#pragma D option quiet 42263508Sdim 43206274SrdivackyBEGIN 44206274Srdivacky{ 45206274Srdivacky i = 0; 46234353Sdim} 47206274Srdivacky 48194612Sedprofile:::tick-1sec 49194612Sed{ 50194612Sed printf("%s %s %s %s", probeprov, probemod, probefunc, probename); 51203954Srdivacky exit (0); 52194612Sed} 53194612Sed