Go to the source code of this file.
◆ ERROR_RETURN
◆ main()
Definition at line 15 of file PAPI_state.c.
16{
17
19 int status = 0;
21
22
23
24
25
26
27
28
30 {
31 printf("Library initialization error! \n");
32 exit(-1);
33 }
34
35
38
39
42
45
47
48
51
54
56
57
59
60 exit(0);
61}
#define ERROR_RETURN(retval)
int printstate(int status)
add PAPI preset or native hardware event to an event set
Create a new empty PAPI EventSet.
initialize the PAPI library.
Finish using PAPI and free all related resources.
Start counting hardware events in an event set.
Return the counting state of an EventSet.
◆ printstate()
Definition at line 63 of file PAPI_state.c.
64{
66 printf("Eventset is currently stopped or inactive \n");
68 printf("Eventset is currently running \n");
70 printf("Eventset is currently Paused \n");
72 printf(" Eventset defined but not initialized \n");
74 printf(" Eventset has overflowing enabled \n");
76 printf(" Eventset has profiling enabled \n");
78 printf(" Eventset has multiplexing enabled \n");
79 return 0;
80}
#define PAPI_MULTIPLEXING