17main(
int argc,
char **argv )
36 printf(
"Test case %s: start, stop with a derived counter.\n",
38 printf(
"------------------------------------------------\n" );
40 printf(
"Default domain is: %d (%s)\n",
tmp,
43 printf(
"Default granularity is: %d (%s)\n\n",
tmp,
50 if ( info.
count > 1 ) {
58 test_skip(__FILE__, __LINE__,
"No events found", 0);
82 if (!
quiet) printf(
"Running do_stuff().\n" );
93 sprintf( add_event_str,
"%-12s : \t",
event_name );
95 printf(
"------------------------------------------------\n" );
108 if (!
quiet) printf(
"Verification: Does it produce a non-zero value?\n" );
118 test_fail(__FILE__,__LINE__,
"Validation", 1 );
add PAPI preset or native hardware event to an event set
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.
Start counting hardware events in an event set.
Stop counting hardware events in an event set.
char event_name[2][PAPI_MAX_STR_LEN]
static const int PAPI_events_len
unsigned int PAPI_events[EVENTSLEN]
#define PAPI_2MAX_STR_LEN
static long long values[NUM_EVENTS]
Return codes and api definitions.
int tests_quiet(int argc, char **argv)
char * stringify_all_domains(int domains)
char * stringify_granularity(int granularity)
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)