xref: /onnv-gate/usr/src/cmd/dtrace/test/tst/common/safety/tst.ucaller.d (revision 5114:0dab8b69b8f2)
1*5114Sahl /*
2*5114Sahl  * CDDL HEADER START
3*5114Sahl  *
4*5114Sahl  * The contents of this file are subject to the terms of the
5*5114Sahl  * Common Development and Distribution License (the "License").
6*5114Sahl  * You may not use this file except in compliance with the License.
7*5114Sahl  *
8*5114Sahl  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*5114Sahl  * or http://www.opensolaris.org/os/licensing.
10*5114Sahl  * See the License for the specific language governing permissions
11*5114Sahl  * and limitations under the License.
12*5114Sahl  *
13*5114Sahl  * When distributing Covered Code, include this CDDL HEADER in each
14*5114Sahl  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*5114Sahl  * If applicable, add the following below this CDDL HEADER, with the
16*5114Sahl  * fields enclosed by brackets "[]" replaced with your own identifying
17*5114Sahl  * information: Portions Copyright [yyyy] [name of copyright owner]
18*5114Sahl  *
19*5114Sahl  * CDDL HEADER END
20*5114Sahl  */
21*5114Sahl 
22*5114Sahl /*
23*5114Sahl  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24*5114Sahl  * Use is subject to license terms.
25*5114Sahl  */
26*5114Sahl 
27*5114Sahl #pragma ident	"%Z%%M%	%I%	%E% SMI"
28*5114Sahl 
29*5114Sahl /*
30*5114Sahl  * ASSERTION:
31*5114Sahl  * 	collect ucaller at every fbt probe and at every firing of a
32*5114Sahl  *	high-frequency profile probe
33*5114Sahl  */
34*5114Sahl 
35*5114Sahl fbt:::
36*5114Sahl {
37*5114Sahl 	@a[ucaller] = count();
38*5114Sahl }
39*5114Sahl 
40*5114Sahl profile-4999hz
41*5114Sahl {
42*5114Sahl 	@a[ucaller] = count();
43*5114Sahl }
44*5114Sahl 
45*5114Sahl tick-1sec
46*5114Sahl /n++ == 30/
47*5114Sahl {
48*5114Sahl 	exit(0);
49*5114Sahl }
50