xref: /freebsd-src/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/aggs/tst.aggencoding.d (revision 246e7a2b6494cd991b08ac669ed761ecea0cc98c)
1*a43f0be9SRui Paulo /*
2*a43f0be9SRui Paulo  * This file and its contents are supplied under the terms of the
3*a43f0be9SRui Paulo  * Common Development and Distribution License ("CDDL"), version 1.0.
4*a43f0be9SRui Paulo  * You may only use this file in accordance with the terms of version
5*a43f0be9SRui Paulo  * 1.0 of the CDDL.
6*a43f0be9SRui Paulo  *
7*a43f0be9SRui Paulo  * A full copy of the text of the CDDL should have accompanied this
8*a43f0be9SRui Paulo  * source.  A copy of the CDDL is also available via the Internet at
9*a43f0be9SRui Paulo  * http://www.illumos.org/license/CDDL.
10*a43f0be9SRui Paulo  */
11*a43f0be9SRui Paulo 
12*a43f0be9SRui Paulo /*
13*a43f0be9SRui Paulo  * Copyright (c) 2013 Joyent, Inc.  All rights reserved.
14*a43f0be9SRui Paulo  */
15*a43f0be9SRui Paulo 
16*a43f0be9SRui Paulo #pragma D option quiet
17*a43f0be9SRui Paulo #pragma D option encoding=utf8
18*a43f0be9SRui Paulo #pragma D option aggzoom
19*a43f0be9SRui Paulo 
20*a43f0be9SRui Paulo tick-1ms
21*a43f0be9SRui Paulo /i++ < 320/
22*a43f0be9SRui Paulo {
23*a43f0be9SRui Paulo 	@ = lquantize(i, 0, 640, 1, i);
24*a43f0be9SRui Paulo 	@ = lquantize(641 - i, 0, 640, 1, i);
25*a43f0be9SRui Paulo }
26*a43f0be9SRui Paulo 
27*a43f0be9SRui Paulo tick-1ms
28*a43f0be9SRui Paulo /i == 320/
29*a43f0be9SRui Paulo {
30*a43f0be9SRui Paulo 	printa(@);
31*a43f0be9SRui Paulo 	exit(0);
32*a43f0be9SRui Paulo }
33