14int main(
int argc,
char **argv ) {
20 char user_event[4096];
34 printf(
"No sample invalid event defined for this architecture\n");
36 test_skip( __FILE__, __LINE__,
"No event", 0);
58 printf(
"Read result: %lld\n",
values[0]);
61 test_fail( __FILE__, __LINE__,
"Added comma separated event somehow",0);
add PAPI preset or native hardware event by name to an EventSet
Create a new empty PAPI EventSet.
initialize the PAPI library.
Start counting hardware events in an event set.
Stop counting hardware events in an event set.
Returns a string describing the PAPI error code.
char * get_invalid_event_name(char *event, int size)
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)