1*8803SJonathan.Haslam@Sun.COM /* 2*8803SJonathan.Haslam@Sun.COM * CDDL HEADER START 3*8803SJonathan.Haslam@Sun.COM * 4*8803SJonathan.Haslam@Sun.COM * The contents of this file are subject to the terms of the 5*8803SJonathan.Haslam@Sun.COM * Common Development and Distribution License (the "License"). 6*8803SJonathan.Haslam@Sun.COM * You may not use this file except in compliance with the License. 7*8803SJonathan.Haslam@Sun.COM * 8*8803SJonathan.Haslam@Sun.COM * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*8803SJonathan.Haslam@Sun.COM * or http://www.opensolaris.org/os/licensing. 10*8803SJonathan.Haslam@Sun.COM * See the License for the specific language governing permissions 11*8803SJonathan.Haslam@Sun.COM * and limitations under the License. 12*8803SJonathan.Haslam@Sun.COM * 13*8803SJonathan.Haslam@Sun.COM * When distributing Covered Code, include this CDDL HEADER in each 14*8803SJonathan.Haslam@Sun.COM * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*8803SJonathan.Haslam@Sun.COM * If applicable, add the following below this CDDL HEADER, with the 16*8803SJonathan.Haslam@Sun.COM * fields enclosed by brackets "[]" replaced with your own identifying 17*8803SJonathan.Haslam@Sun.COM * information: Portions Copyright [yyyy] [name of copyright owner] 18*8803SJonathan.Haslam@Sun.COM * 19*8803SJonathan.Haslam@Sun.COM * CDDL HEADER END 20*8803SJonathan.Haslam@Sun.COM */ 21*8803SJonathan.Haslam@Sun.COM 22*8803SJonathan.Haslam@Sun.COM /* 23*8803SJonathan.Haslam@Sun.COM * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24*8803SJonathan.Haslam@Sun.COM * Use is subject to license terms. 25*8803SJonathan.Haslam@Sun.COM */ 26*8803SJonathan.Haslam@Sun.COM 27*8803SJonathan.Haslam@Sun.COM /* 28*8803SJonathan.Haslam@Sun.COM * Test to check that attempting to enable too many probes will fail. 29*8803SJonathan.Haslam@Sun.COM * 30*8803SJonathan.Haslam@Sun.COM * This test will fail if: 31*8803SJonathan.Haslam@Sun.COM * 1) We ever execute on a platform which is capable of programming 10 32*8803SJonathan.Haslam@Sun.COM * 'PAPI_tot_ins' events simultaneously (which no current platforms are 33*8803SJonathan.Haslam@Sun.COM * capable of doing). 34*8803SJonathan.Haslam@Sun.COM * 2) The system under test does not define the 'PAPI_tot_ins' event. 35*8803SJonathan.Haslam@Sun.COM */ 36*8803SJonathan.Haslam@Sun.COM 37*8803SJonathan.Haslam@Sun.COM #pragma D option quiet 38*8803SJonathan.Haslam@Sun.COM 39*8803SJonathan.Haslam@Sun.COM BEGIN 40*8803SJonathan.Haslam@Sun.COM { 41*8803SJonathan.Haslam@Sun.COM exit(0); 42*8803SJonathan.Haslam@Sun.COM } 43*8803SJonathan.Haslam@Sun.COM 44*8803SJonathan.Haslam@Sun.COM cpc:::PAPI_tot_ins-all-10000, 45*8803SJonathan.Haslam@Sun.COM cpc:::PAPI_tot_ins-all-10001, 46*8803SJonathan.Haslam@Sun.COM cpc:::PAPI_tot_ins-all-10002, 47*8803SJonathan.Haslam@Sun.COM cpc:::PAPI_tot_ins-all-10003, 48*8803SJonathan.Haslam@Sun.COM cpc:::PAPI_tot_ins-all-10004, 49*8803SJonathan.Haslam@Sun.COM cpc:::PAPI_tot_ins-all-10005, 50*8803SJonathan.Haslam@Sun.COM cpc:::PAPI_tot_ins-all-10006, 51*8803SJonathan.Haslam@Sun.COM cpc:::PAPI_tot_ins-all-10007, 52*8803SJonathan.Haslam@Sun.COM cpc:::PAPI_tot_ins-all-10008, 53*8803SJonathan.Haslam@Sun.COM cpc:::PAPI_tot_ins-all-10009 54*8803SJonathan.Haslam@Sun.COM { 55*8803SJonathan.Haslam@Sun.COM } 56