1239385Smm/* 2239385Smm * CDDL HEADER START 3239385Smm * 4239385Smm * This file and its contents are supplied under the terms of the 5239385Smm * Common Development and Distribution License ("CDDL"), version 1.0. 6239385Smm * You may only use this file in accordance with the terms of version 7239385Smm * 1.0 of the CDDL. 8239385Smm * 9239385Smm * A full copy of the text of the CDDL should have accompanied this 10239385Smm * source. A copy of the CDDL is also available via the Internet at 11239385Smm * http://www.illumos.org/license/CDDL. 12239385Smm * 13239385Smm * CDDL HEADER END 14239385Smm */ 15239385Smm 16239385Smm/* 17239385Smm * Copyright (c) 2012 by Delphix. All rights reserved. 18239385Smm */ 19239385Smm 20239385Smm/* 21239385Smm * This test excercises the "remnant" handling of the temporal option. 22239385Smm * At the end of one pass of retrieving and printing data from all CPUs, 23239385Smm * some unprocessed data will remain, because its timestamp is after the 24239385Smm * time covered by all CPUs' buffers. This unprocessed data is 25239385Smm * rearranged in a more space-efficient manner. If this is done 26239385Smm * incorrectly, an alignment error may occur. To test this, we use a 27239385Smm * high-frequency probe so that data will be recorded in subsequent 28239385Smm * CPU's buffers after the first CPU's buffer is obtained. The 29239385Smm * combination of data traced here (a 8-byte value and a 4-byte value) 30239385Smm * is effective to cause alignment problems with an incorrect 31239385Smm * implementation. 32239385Smm * 33239385Smm * This test needs to be run on a multi-CPU system to be effective. 34239385Smm */ 35239385Smm 36239385Smm#pragma D option quiet 37239385Smm#pragma D option temporal 38239385Smm 39239385Smmprofile-4997 40239385Smm{ 41239385Smm printf("%u %u", 1ULL, 2); 42239385Smm} 43239385Smm 44239385Smmtick-1 45239385Smm/i++ == 10/ 46239385Smm{ 47239385Smm exit(0); 48239385Smm} 49