Go to the source code of this file.
◆ ERROR_RETURN
◆ NUM_EVENT
◆ THRESHOLD
◆ main()
Definition at line 20 of file PAPI_add_remove_events.c.
20 {
21
24
25
29
30
31
32
33
34
35
36
38 {
39 fprintf(
stderr,
"Error: %s\n", errstring);
40 exit(1);
41 }
42
43
44
47
48
49
52
53
54
57
58
60 {
62 }
63
64
67
68 printf("\nThe total instructions executed are %lld, total cycles %lld\n",
70
71
74
75
78
79
81
82 exit(0);
83}
#define ERROR_RETURN(retval)
add multiple PAPI presets or native hardware events to an event set
Create a new empty PAPI EventSet.
Empty and destroy an EventSet.
initialize the PAPI library.
Remove an array of hardware event codes from a PAPI event set.
Finish using PAPI and free all related resources.
Start counting hardware events in an event set.
Stop counting hardware events in an event set.
static long long values[NUM_EVENTS]