112456ea8SJohn Birrell /* 212456ea8SJohn Birrell * CDDL HEADER START 312456ea8SJohn Birrell * 412456ea8SJohn Birrell * The contents of this file are subject to the terms of the 512456ea8SJohn Birrell * Common Development and Distribution License (the "License"). 612456ea8SJohn Birrell * You may not use this file except in compliance with the License. 712456ea8SJohn Birrell * 812456ea8SJohn Birrell * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 912456ea8SJohn Birrell * or http://www.opensolaris.org/os/licensing. 1012456ea8SJohn Birrell * See the License for the specific language governing permissions 1112456ea8SJohn Birrell * and limitations under the License. 1212456ea8SJohn Birrell * 1312456ea8SJohn Birrell * When distributing Covered Code, include this CDDL HEADER in each 1412456ea8SJohn Birrell * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1512456ea8SJohn Birrell * If applicable, add the following below this CDDL HEADER, with the 1612456ea8SJohn Birrell * fields enclosed by brackets "[]" replaced with your own identifying 1712456ea8SJohn Birrell * information: Portions Copyright [yyyy] [name of copyright owner] 1812456ea8SJohn Birrell * 1912456ea8SJohn Birrell * CDDL HEADER END 2012456ea8SJohn Birrell */ 2112456ea8SJohn Birrell 2212456ea8SJohn Birrell /* 2312456ea8SJohn Birrell * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2412456ea8SJohn Birrell * Use is subject to license terms. 2512456ea8SJohn Birrell */ 2612456ea8SJohn Birrell 2712456ea8SJohn Birrell #pragma ident "%Z%%M% %I% %E% SMI" 2812456ea8SJohn Birrell 2912456ea8SJohn Birrell /* 3012456ea8SJohn Birrell * ASSERTION: 3112456ea8SJohn Birrell * Test multiple count() calls. 3212456ea8SJohn Birrell * 3312456ea8SJohn Birrell * SECTION: Aggregations/Aggregations 3412456ea8SJohn Birrell * 3512456ea8SJohn Birrell */ 3612456ea8SJohn Birrell 3712456ea8SJohn Birrell #pragma D option quiet 3812456ea8SJohn Birrell 3912456ea8SJohn Birrell BEGIN 4012456ea8SJohn Birrell { 4112456ea8SJohn Birrell i = 0; 4212456ea8SJohn Birrell } 4312456ea8SJohn Birrell 4412456ea8SJohn Birrell tick-10ms 4512456ea8SJohn Birrell /i != 10/ 4612456ea8SJohn Birrell { 4712456ea8SJohn Birrell i++; 4812456ea8SJohn Birrell @counts1[execname] = count(); 4912456ea8SJohn Birrell @counts2[execname, arg0] = count(); 5012456ea8SJohn Birrell } 5112456ea8SJohn Birrell 5212456ea8SJohn Birrell tick-10ms 5312456ea8SJohn Birrell /i == 10/ 5412456ea8SJohn Birrell { 5512456ea8SJohn Birrell exit(0); 5612456ea8SJohn Birrell } 57