1*e5803b76SAdam H. Leventhal /*
2*e5803b76SAdam H. Leventhal  * CDDL HEADER START
3*e5803b76SAdam H. Leventhal  *
4*e5803b76SAdam H. Leventhal  * This file and its contents are supplied under the terms of the
5*e5803b76SAdam H. Leventhal  * Common Development and Distribution License ("CDDL"), version 1.0.
6*e5803b76SAdam H. Leventhal  * You may only use this file in accordance with the terms of version
7*e5803b76SAdam H. Leventhal  * 1.0 of the CDDL.
8*e5803b76SAdam H. Leventhal  *
9*e5803b76SAdam H. Leventhal  * A full copy of the text of the CDDL should have accompanied this
10*e5803b76SAdam H. Leventhal  * source.  A copy of the CDDL is also available via the Internet at
11*e5803b76SAdam H. Leventhal  * http://www.illumos.org/license/CDDL.
12*e5803b76SAdam H. Leventhal  *
13*e5803b76SAdam H. Leventhal  * CDDL HEADER END
14*e5803b76SAdam H. Leventhal  */
15*e5803b76SAdam H. Leventhal 
16*e5803b76SAdam H. Leventhal /*
17*e5803b76SAdam H. Leventhal  * Copyright (c) 2012 by Delphix. All rights reserved.
18*e5803b76SAdam H. Leventhal  */
19*e5803b76SAdam H. Leventhal 
20*e5803b76SAdam H. Leventhal /*
21*e5803b76SAdam H. Leventhal  * This test excercises the "remnant" handling of the temporal option.
22*e5803b76SAdam H. Leventhal  * At the end of one pass of retrieving and printing data from all CPUs,
23*e5803b76SAdam H. Leventhal  * some unprocessed data will remain, because its timestamp is after the
24*e5803b76SAdam H. Leventhal  * time covered by all CPUs' buffers.  This unprocessed data is
25*e5803b76SAdam H. Leventhal  * rearranged in a more space-efficient manner.  If this is done
26*e5803b76SAdam H. Leventhal  * incorrectly, an alignment error may occur.  To test this, we use a
27*e5803b76SAdam H. Leventhal  * high-frequency probe so that data will be recorded in subsequent
28*e5803b76SAdam H. Leventhal  * CPU's buffers after the first CPU's buffer is obtained.  The
29*e5803b76SAdam H. Leventhal  * combination of data traced here (a 8-byte value and a 4-byte value)
30*e5803b76SAdam H. Leventhal  * is effective to cause alignment problems with an incorrect
31*e5803b76SAdam H. Leventhal  * implementation.
32*e5803b76SAdam H. Leventhal  *
33*e5803b76SAdam H. Leventhal  * This test needs to be run on a multi-CPU system to be effective.
34*e5803b76SAdam H. Leventhal  */
35*e5803b76SAdam H. Leventhal 
36*e5803b76SAdam H. Leventhal #pragma D option quiet
37*e5803b76SAdam H. Leventhal #pragma D option temporal
38*e5803b76SAdam H. Leventhal 
39*e5803b76SAdam H. Leventhal profile-4997
40*e5803b76SAdam H. Leventhal {
41*e5803b76SAdam H. Leventhal 	printf("%u %u", 1ULL, 2);
42*e5803b76SAdam H. Leventhal }
43*e5803b76SAdam H. Leventhal 
44*e5803b76SAdam H. Leventhal tick-1
45*e5803b76SAdam H. Leventhal /i++ == 10/
46*e5803b76SAdam H. Leventhal {
47*e5803b76SAdam H. Leventhal 	exit(0);
48*e5803b76SAdam H. Leventhal }