11{
17
18
20
21
25 }
26
27
30 else
32
35 if (!
quiet) printf(
"Trouble querying event\n");
37 }
38
39
42
43
46
47
50
51
52
55
56
57
60
61
63
64
67
68
69
72
73
74
77
78
79
82
83
86
91
92 printf( "Test case John May 2: cleanup / destroy eventset.\n" );
93 printf( "-------------------------------------------------\n" );
94 printf( "Test run : \t1\n" );
97 printf( "\n" );
98 printf( "-------------------------------------------------\n" );
99 printf( "The following messages will appear if PAPI is compiled with debug enabled:\n" );
100 printf
101 ( "\tPAPI Error Code -10: PAPI_EISRUN: EventSet is currently counting\n" );
102 printf
103 ( "\tPAPI Error Code -10: PAPI_EISRUN: EventSet is currently counting\n" );
104 printf( "\tPAPI Error Code -1: PAPI_EINVAL: Invalid argument\n" );
105 }
107
108 return 0;
109}
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.
Convert a numeric hardware event code to a name.
initialize the PAPI library.
Query if PAPI event exists.
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 long long values[NUM_EVENTS]
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)