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