xref: /illumos-gate/usr/src/cmd/dtrace/test/tst/common/multiaggs/tst.many.d (revision 9b9d39d2a32ff806d2431dbcc50968ef1e6d46b2)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 
22 /*
23  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #pragma D option destructive
28 #pragma D option quiet
29 
30 BEGIN
31 /0/
32 {
33 	@agg996[996] = quantize(998);
34 	@agg997[997] = count();
35 	@agg998[998] = min(998);
36 	@agg999[999] = lquantize(0, -10, 10, 1);
37 }
38 
39 BEGIN
40 {
41 	@agg0[0] = sum(0);
42 	@agg1[1] = sum(1);
43 	@agg2[2] = sum(2);
44 	@agg3[3] = sum(3);
45 	@agg4[4] = sum(4);
46 	@agg5[5] = sum(5);
47 	@agg6[6] = sum(6);
48 	@agg7[7] = sum(7);
49 	@agg8[8] = sum(8);
50 	@agg9[9] = sum(9);
51 	@agg10[10] = sum(10);
52 	@agg11[11] = sum(11);
53 	@agg12[12] = sum(12);
54 	@agg13[13] = sum(13);
55 	@agg14[14] = sum(14);
56 	@agg15[15] = sum(15);
57 	@agg16[16] = sum(16);
58 	@agg17[17] = sum(17);
59 	@agg18[18] = sum(18);
60 	@agg19[19] = sum(19);
61 	@agg20[20] = sum(20);
62 	@agg21[21] = sum(21);
63 	@agg22[22] = sum(22);
64 	@agg23[23] = sum(23);
65 	@agg24[24] = sum(24);
66 	@agg25[25] = sum(25);
67 	@agg26[26] = sum(26);
68 	@agg27[27] = sum(27);
69 	@agg28[28] = sum(28);
70 	@agg29[29] = sum(29);
71 	@agg30[30] = sum(30);
72 	@agg31[31] = sum(31);
73 	@agg32[32] = sum(32);
74 	@agg33[33] = sum(33);
75 	@agg34[34] = sum(34);
76 	@agg35[35] = sum(35);
77 	@agg36[36] = sum(36);
78 	@agg37[37] = sum(37);
79 	@agg38[38] = sum(38);
80 	@agg39[39] = sum(39);
81 	@agg40[40] = sum(40);
82 	@agg41[41] = sum(41);
83 	@agg42[42] = sum(42);
84 	@agg43[43] = sum(43);
85 	@agg44[44] = sum(44);
86 	@agg45[45] = sum(45);
87 	@agg46[46] = sum(46);
88 	@agg47[47] = sum(47);
89 	@agg48[48] = sum(48);
90 	@agg49[49] = sum(49);
91 	@agg50[50] = sum(50);
92 	@agg51[51] = sum(51);
93 	@agg52[52] = sum(52);
94 	@agg53[53] = sum(53);
95 	@agg54[54] = sum(54);
96 	@agg55[55] = sum(55);
97 	@agg56[56] = sum(56);
98 	@agg57[57] = sum(57);
99 	@agg58[58] = sum(58);
100 	@agg59[59] = sum(59);
101 	@agg60[60] = sum(60);
102 	@agg61[61] = sum(61);
103 	@agg62[62] = sum(62);
104 	@agg63[63] = sum(63);
105 	@agg64[64] = sum(64);
106 	@agg65[65] = sum(65);
107 	@agg66[66] = sum(66);
108 	@agg67[67] = sum(67);
109 	@agg68[68] = sum(68);
110 	@agg69[69] = sum(69);
111 	@agg70[70] = sum(70);
112 	@agg71[71] = sum(71);
113 	@agg72[72] = sum(72);
114 	@agg73[73] = sum(73);
115 	@agg74[74] = sum(74);
116 	@agg75[75] = sum(75);
117 	@agg76[76] = sum(76);
118 	@agg77[77] = sum(77);
119 	@agg78[78] = sum(78);
120 	@agg79[79] = sum(79);
121 	@agg80[80] = sum(80);
122 	@agg81[81] = sum(81);
123 	@agg82[82] = sum(82);
124 	@agg83[83] = sum(83);
125 	@agg84[84] = sum(84);
126 	@agg85[85] = sum(85);
127 	@agg86[86] = sum(86);
128 	@agg87[87] = sum(87);
129 	@agg88[88] = sum(88);
130 	@agg89[89] = sum(89);
131 	@agg90[90] = sum(90);
132 	@agg91[91] = sum(91);
133 	@agg92[92] = sum(92);
134 	@agg93[93] = sum(93);
135 	@agg94[94] = sum(94);
136 	@agg95[95] = sum(95);
137 	@agg96[96] = sum(96);
138 	@agg97[97] = sum(97);
139 	@agg98[98] = sum(98);
140 	@agg99[99] = sum(99);
141 	@agg100[100] = sum(100);
142 	@agg101[101] = sum(101);
143 	@agg102[102] = sum(102);
144 	@agg103[103] = sum(103);
145 	@agg104[104] = sum(104);
146 	@agg105[105] = sum(105);
147 	@agg106[106] = sum(106);
148 	@agg107[107] = sum(107);
149 	@agg108[108] = sum(108);
150 	@agg109[109] = sum(109);
151 	@agg110[110] = sum(110);
152 	@agg111[111] = sum(111);
153 	@agg112[112] = sum(112);
154 	@agg113[113] = sum(113);
155 	@agg114[114] = sum(114);
156 	@agg115[115] = sum(115);
157 	@agg116[116] = sum(116);
158 	@agg117[117] = sum(117);
159 	@agg118[118] = sum(118);
160 	@agg119[119] = sum(119);
161 	@agg120[120] = sum(120);
162 	@agg121[121] = sum(121);
163 	@agg122[122] = sum(122);
164 	@agg123[123] = sum(123);
165 	@agg124[124] = sum(124);
166 	@agg125[125] = sum(125);
167 	@agg126[126] = sum(126);
168 	@agg127[127] = sum(127);
169 	@agg128[128] = sum(128);
170 	@agg129[129] = sum(129);
171 	@agg130[130] = sum(130);
172 	@agg131[131] = sum(131);
173 	@agg132[132] = sum(132);
174 	@agg133[133] = sum(133);
175 	@agg134[134] = sum(134);
176 	@agg135[135] = sum(135);
177 	@agg136[136] = sum(136);
178 	@agg137[137] = sum(137);
179 	@agg138[138] = sum(138);
180 	@agg139[139] = sum(139);
181 	@agg140[140] = sum(140);
182 	@agg141[141] = sum(141);
183 	@agg142[142] = sum(142);
184 	@agg143[143] = sum(143);
185 	@agg144[144] = sum(144);
186 	@agg145[145] = sum(145);
187 	@agg146[146] = sum(146);
188 	@agg147[147] = sum(147);
189 	@agg148[148] = sum(148);
190 	@agg149[149] = sum(149);
191 	@agg150[150] = sum(150);
192 	@agg151[151] = sum(151);
193 	@agg152[152] = sum(152);
194 	@agg153[153] = sum(153);
195 	@agg154[154] = sum(154);
196 	@agg155[155] = sum(155);
197 	@agg156[156] = sum(156);
198 	@agg157[157] = sum(157);
199 	@agg158[158] = sum(158);
200 	@agg159[159] = sum(159);
201 	@agg160[160] = sum(160);
202 	@agg161[161] = sum(161);
203 	@agg162[162] = sum(162);
204 	@agg163[163] = sum(163);
205 	@agg164[164] = sum(164);
206 	@agg165[165] = sum(165);
207 	@agg166[166] = sum(166);
208 	@agg167[167] = sum(167);
209 	@agg168[168] = sum(168);
210 	@agg169[169] = sum(169);
211 	@agg170[170] = sum(170);
212 	@agg171[171] = sum(171);
213 	@agg172[172] = sum(172);
214 	@agg173[173] = sum(173);
215 	@agg174[174] = sum(174);
216 	@agg175[175] = sum(175);
217 	@agg176[176] = sum(176);
218 	@agg177[177] = sum(177);
219 	@agg178[178] = sum(178);
220 	@agg179[179] = sum(179);
221 	@agg180[180] = sum(180);
222 	@agg181[181] = sum(181);
223 	@agg182[182] = sum(182);
224 	@agg183[183] = sum(183);
225 	@agg184[184] = sum(184);
226 	@agg185[185] = sum(185);
227 	@agg186[186] = sum(186);
228 	@agg187[187] = sum(187);
229 	@agg188[188] = sum(188);
230 	@agg189[189] = sum(189);
231 	@agg190[190] = sum(190);
232 	@agg191[191] = sum(191);
233 	@agg192[192] = sum(192);
234 	@agg193[193] = sum(193);
235 	@agg194[194] = sum(194);
236 	@agg195[195] = sum(195);
237 	@agg196[196] = sum(196);
238 	@agg197[197] = sum(197);
239 	@agg198[198] = sum(198);
240 	@agg199[199] = sum(199);
241 	@agg200[200] = sum(200);
242 	@agg201[201] = sum(201);
243 	@agg202[202] = sum(202);
244 	@agg203[203] = sum(203);
245 	@agg204[204] = sum(204);
246 	@agg205[205] = sum(205);
247 	@agg206[206] = sum(206);
248 	@agg207[207] = sum(207);
249 	@agg208[208] = sum(208);
250 	@agg209[209] = sum(209);
251 	@agg210[210] = sum(210);
252 	@agg211[211] = sum(211);
253 	@agg212[212] = sum(212);
254 	@agg213[213] = sum(213);
255 	@agg214[214] = sum(214);
256 	@agg215[215] = sum(215);
257 	@agg216[216] = sum(216);
258 	@agg217[217] = sum(217);
259 	@agg218[218] = sum(218);
260 	@agg219[219] = sum(219);
261 	@agg220[220] = sum(220);
262 	@agg221[221] = sum(221);
263 	@agg222[222] = sum(222);
264 	@agg223[223] = sum(223);
265 	@agg224[224] = sum(224);
266 	@agg225[225] = sum(225);
267 	@agg226[226] = sum(226);
268 	@agg227[227] = sum(227);
269 	@agg228[228] = sum(228);
270 	@agg229[229] = sum(229);
271 	@agg230[230] = sum(230);
272 	@agg231[231] = sum(231);
273 	@agg232[232] = sum(232);
274 	@agg233[233] = sum(233);
275 	@agg234[234] = sum(234);
276 	@agg235[235] = sum(235);
277 	@agg236[236] = sum(236);
278 	@agg237[237] = sum(237);
279 	@agg238[238] = sum(238);
280 	@agg239[239] = sum(239);
281 	@agg240[240] = sum(240);
282 	@agg241[241] = sum(241);
283 	@agg242[242] = sum(242);
284 	@agg243[243] = sum(243);
285 	@agg244[244] = sum(244);
286 	@agg245[245] = sum(245);
287 	@agg246[246] = sum(246);
288 
289 	printa("%8d %8@d %8@d\n", @agg0, @agg1);
290 	printf("\n");
291 
292 	printa("%8d %8@d %8@d\n", @agg0, @agg996);
293 	printf("\n");
294 
295 	printa("%4d %4@d %4@d %4@d %4@d %4@d %4@d %4@d %4@d %4@d %4@d %4@d\n",
296 	    @agg12, @agg3, @agg73, @agg997,
297 	    @agg9, @agg9, @agg4, @agg998,
298 	    @agg11, @agg23, @agg69);
299 
300 	printf("\n");
301 
302 	printa("%8d %8@d %8@d\n", @agg245, @agg246);
303 	printf("\n");
304 
305 	printa("%8d %8@d %8@d\n", @agg999, @agg246);
306 	printf("\n");
307 
308 	exit(0);
309 }
310