tst.probefunc.d revision 2633:71bab08d24b2
1238106Sdes/*
2238106Sdes * CDDL HEADER START
3238106Sdes *
4238106Sdes * The contents of this file are subject to the terms of the
5238106Sdes * Common Development and Distribution License (the "License").
6238106Sdes * You may not use this file except in compliance with the License.
7238106Sdes *
8238106Sdes * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9238106Sdes * or http://www.opensolaris.org/os/licensing.
10238106Sdes * See the License for the specific language governing permissions
11238106Sdes * and limitations under the License.
12238106Sdes *
13238106Sdes * When distributing Covered Code, include this CDDL HEADER in each
14238106Sdes * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15238106Sdes * If applicable, add the following below this CDDL HEADER, with the
16238106Sdes * fields enclosed by brackets "[]" replaced with your own identifying
17238106Sdes * information: Portions Copyright [yyyy] [name of copyright owner]
18238106Sdes *
19238106Sdes * CDDL HEADER END
20238106Sdes */
21238106Sdes
22238106Sdes/*
23238106Sdes * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24238106Sdes * Use is subject to license terms.
25238106Sdes */
26238106Sdes
27238106Sdes#pragma ident	"%Z%%M%	%I%	%E% SMI"
28238106Sdes
29238106Sdes/*
30238106Sdes * ASSERTION:
31238106Sdes * 	Simple profile provider test.
32238106Sdes * 	print the 'probefunc' field i.e. Current probe description's function
33238106Sdes *	field.
34238106Sdes *	Match expected output in tst.probefunc.d.out
35238106Sdes *
36238106Sdes * SECTION: profile Provider/tick-n probes;
37238106Sdes * 	Variables/Built-in Variables
38238106Sdes *
39238106Sdes */
40238106Sdes
41238106Sdes#pragma D option quiet
42238106Sdes
43238106SdesBEGIN
44238106Sdes{
45294190Sdes	i = 0;
46238106Sdes}
47238106Sdes
48238106Sdesprofile:::tick-1sec
49238106Sdes{
50238106Sdes	printf("probe funct = %s", probefunc);
51238106Sdes	exit (0);
52238106Sdes}
53238106Sdes