Go to the source code of this file.
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 14 of file broken_events.c.
14 {
15
17
20 char user_event[4096];
22
23
25
26
30 }
31
34 printf("No sample invalid event defined for this architecture\n");
35 }
36 test_skip( __FILE__, __LINE__,
"No event", 0);
37 }
38
42 }
43
48 }
50
51 }
52
54
56
58 printf(
"Read result: %lld\n",
values[0]);
59 }
60
61 test_fail( __FILE__, __LINE__,
"Added comma separated event somehow",0);
62
63 return 0;
64}
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]
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)