3 * test.ksh - DTrace include file test script.
5 * $Id: test.ksh 36 2007-09-15 06:51:18Z brendan $
7 * COPYRIGHT: Copyright (c) 2007 Brendan Gregg.
11 * The contents of this file are subject to the terms of the
12 * Common Development and Distribution License, Version 1.0 only
13 * (the "License"). You may not use this file except in compliance
16 * You can obtain a copy of the license at Docs/cddl1.txt
17 * or http://www.opensolaris.org/os/licensing.
18 * See the License for the specific language governing permissions
19 * and limitations under the License.
23 * 16-Sep-2007 Brendan Gregg Created this.
26 dtrace -CI . -s /dev/stdin << END
31 #pragma D option quiet
32 #pragma D option destructive
37 printf("\nNUM_TO_STR %12d = %s\n", i, NUM_TO_STR(i));
39 printf("NUM_TO_STR %12d = %s\n", i, NUM_TO_STR(i));
41 printf("NUM_TO_STR %12d = %s\n", i, NUM_TO_STR(i));
43 printf("NUM_TO_STR %12d = %s\n", i, NUM_TO_STR(i));
46 printf("\nBYTES_TO_STR %12d = %s\n", i, BYTES_TO_STR(i));
48 printf("BYTES_TO_STR %12d = %s\n", i, BYTES_TO_STR(i));
50 printf("BYTES_TO_STR %12d = %s\n", i, BYTES_TO_STR(i));
52 printf("BYTES_TO_STR %12d = %s\n", i, BYTES_TO_STR(i));
55 printf("\nUS_TO_STR %12d = %s\n", i, US_TO_STR(i));
57 printf("US_TO_STR %12d = %s\n", i, US_TO_STR(i));
59 printf("US_TO_STR %12d = %s\n", i, US_TO_STR(i));
61 printf("\nwalltimestamp : %Y\n", walltimestamp);
62 printf("TZ=GMT date : ");
63 system("TZ=GMT date '+%%H:%%M:%%S'");
64 printf("TIME_HHMMSS : %s\n", TIME_HHMMSS);