Go to the source code of this file.
◆ ERROR_RETURN
◆ main()
Definition at line 23 of file PAPI_reset.c.
24{
26
27
30
31
34
35
36
37
38
39
40
41
43 {
44 printf("Library initialization error! \n");
45 exit(1);
46 }
47
48
51
52
55
56
59
61
62
65
66
67 printf(
"The first time read value is %lld\n",
values[0]);
68
69
72
73
76
78
79
82
83 printf(
"The second time read value is %lld\n",
values[0]);
84
85
87
88 exit(0);
89}
int poorly_tuned_function()
#define ERROR_RETURN(retval)
add PAPI preset or native hardware event to an event set
Create a new empty PAPI EventSet.
initialize the PAPI library.
Reset the hardware event counts in an 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]
◆ poorly_tuned_function()
| int poorly_tuned_function |
( |
| ) |
|
Definition at line 11 of file PAPI_reset.c.
12{
15
17 {
19 }
20 return 0;
21}