61 test_fail( __FILE__, __LINE__,
"PAPI_assign_eventset_component",
71 test_skip(__FILE__, __LINE__,
"Multiplex not supported", 1);
78 if ( max_mux > 32 ) max_mux = 32;
87 printf(
"\nFilling the event set with as many non-derived events as we can...\n" );
93 if ( pset.
count && ( strcmp( pset.
derived,
"NOT_DERIVED" ) == 0 ) ) {
96 printf(
"Failed trying to add %s\n",pset.
symbol);
110 test_skip(__FILE__,__LINE__,
"No events",0);
113 events = (
int * ) malloc( (
size_t ) j *
sizeof (
int ) );
115 test_fail( __FILE__, __LINE__,
"malloc events", 0 );
117 values = (
long long * ) malloc( (
size_t ) j *
sizeof (
long long ) );
119 test_fail( __FILE__, __LINE__,
"malloc values", 0 );
143 for (
i = 0, allvalid = 0;
i < j;
i++ ) {
152 printf(
"Caution: %d counters had zero values\n", allvalid );
157 test_fail( __FILE__, __LINE__,
"All counters returned zero", 5 );
160 for (
i = 0, allvalid = 0;
i < j;
i++ ) {
161 for ( k =
i + 1; k < j; k++ ) {
171 printf(
"Caution: %d counter pair(s) had identical values\n",
199 printf(
"%s: Does PAPI_multiplex_init() handle lots of events?\n",
201 printf(
"Using %d iterations\n",
NUM_ITERS );
add PAPI preset or native hardware event to an event set
Assign a component index to an existing but empty EventSet.
Empty and destroy an EventSet.
Create a new empty PAPI EventSet.
Empty and destroy an EventSet.
Enumerate PAPI preset or native events.
Convert a numeric hardware event code to a name.
Get the event's name and description info.
Get PAPI library or event set options.
initialize the PAPI library.
list the events in an event set
Initialize multiplex support in the PAPI library.
Set the default counting domain for new event sets bound to the cpu component.
Convert a standard event set to a multiplexed event set.
Start counting hardware events in an event set.
Stop counting hardware events in an event set.
#define PAPI_MAX_MPX_CTRS
char events[MAX_EVENTS][BUFSIZ]
static long long values[NUM_EVENTS]
Return codes and api definitions.
int tests_quiet(int argc, char **argv)
void PAPI_NORETURN test_fail(const char *file, int line, const char *call, int retval)
void PAPI_NORETURN test_pass(const char *filename)
void PAPI_NORETURN test_skip(const char *file, int line, const char *call, int retval)
char symbol[PAPI_HUGE_STR_LEN]
char derived[PAPI_MIN_STR_LEN]