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