Go to the source code of this file.
◆ NUM_EVENTS
◆ NUM_LOOPS
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 19 of file destroy.c.
19 {
20
25
26
28
29
33 }
34
36 printf("Testing to make sure we can destroy eventsets\n");
37 }
38
40
41
45 "PAPI_create_eventset",
retval );
46 }
47
48
52 printf("Trouble adding PAPI_TOT_CYC: %s\n",
54 }
56 "adding PAPI_TOT_CYC",
retval );
57 }
58
59
63 }
64
65
69 }
70
71
75 "PAPI_remove_named_event",
retval );
76 }
77
81 "PAPI_destroy_eventset",
retval );
82 }
83
84 }
85
87
88 return 0;
89}
add PAPI preset or native hardware event by name to an EventSet
Create a new empty PAPI EventSet.
Empty and destroy an EventSet.
initialize the PAPI library.
removes a named hardware event from a PAPI event set.
Start counting hardware events in an event set.
Stop counting hardware events in an event set.
Returns a string describing the PAPI error code.
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)