1*9531Srafael.vanoni@sun.com /* 2*9531Srafael.vanoni@sun.com * CDDL HEADER START 3*9531Srafael.vanoni@sun.com * 4*9531Srafael.vanoni@sun.com * The contents of this file are subject to the terms of the 5*9531Srafael.vanoni@sun.com * Common Development and Distribution License (the "License"). 6*9531Srafael.vanoni@sun.com * You may not use this file except in compliance with the License. 7*9531Srafael.vanoni@sun.com * 8*9531Srafael.vanoni@sun.com * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*9531Srafael.vanoni@sun.com * or http://www.opensolaris.org/os/licensing. 10*9531Srafael.vanoni@sun.com * See the License for the specific language governing permissions 11*9531Srafael.vanoni@sun.com * and limitations under the License. 12*9531Srafael.vanoni@sun.com * 13*9531Srafael.vanoni@sun.com * When distributing Covered Code, include this CDDL HEADER in each 14*9531Srafael.vanoni@sun.com * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*9531Srafael.vanoni@sun.com * If applicable, add the following below this CDDL HEADER, with the 16*9531Srafael.vanoni@sun.com * fields enclosed by brackets "[]" replaced with your own identifying 17*9531Srafael.vanoni@sun.com * information: Portions Copyright [yyyy] [name of copyright owner] 18*9531Srafael.vanoni@sun.com * 19*9531Srafael.vanoni@sun.com * CDDL HEADER END 20*9531Srafael.vanoni@sun.com */ 21*9531Srafael.vanoni@sun.com 22*9531Srafael.vanoni@sun.com /* 23*9531Srafael.vanoni@sun.com * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24*9531Srafael.vanoni@sun.com * Use is subject to license terms. 25*9531Srafael.vanoni@sun.com */ 26*9531Srafael.vanoni@sun.com 27*9531Srafael.vanoni@sun.com /* 28*9531Srafael.vanoni@sun.com * ASSERTION: 29*9531Srafael.vanoni@sun.com * Positive stddev() test 30*9531Srafael.vanoni@sun.com * 31*9531Srafael.vanoni@sun.com * SECTION: Aggregations/Aggregations 32*9531Srafael.vanoni@sun.com * 33*9531Srafael.vanoni@sun.com * NOTES: 34*9531Srafael.vanoni@sun.com * Verifies that printing a clear()'d aggregation with an stddev() 35*9531Srafael.vanoni@sun.com * aggregation function doesn't cause problems. 36*9531Srafael.vanoni@sun.com * 37*9531Srafael.vanoni@sun.com */ 38*9531Srafael.vanoni@sun.com 39*9531Srafael.vanoni@sun.com #pragma D option quiet 40*9531Srafael.vanoni@sun.com 41*9531Srafael.vanoni@sun.com tick-10ms 42*9531Srafael.vanoni@sun.com /i++ < 5/ 43*9531Srafael.vanoni@sun.com { 44*9531Srafael.vanoni@sun.com @a = stddev(timestamp); 45*9531Srafael.vanoni@sun.com } 46*9531Srafael.vanoni@sun.com 47*9531Srafael.vanoni@sun.com tick-10ms 48*9531Srafael.vanoni@sun.com /i == 5/ 49*9531Srafael.vanoni@sun.com { 50*9531Srafael.vanoni@sun.com exit(2); 51*9531Srafael.vanoni@sun.com } 52*9531Srafael.vanoni@sun.com 53*9531Srafael.vanoni@sun.com END 54*9531Srafael.vanoni@sun.com { 55*9531Srafael.vanoni@sun.com clear(@a); 56*9531Srafael.vanoni@sun.com exit(0); 57*9531Srafael.vanoni@sun.com } 58