PAPI  5.4.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
appio.h
Go to the documentation of this file.
1 /****************************/
2 /* THIS IS OPEN SOURCE CODE */
3 /****************************/
4 
24 #ifndef _PAPI_APPIO_H
25 #define _PAPI_APPIO_H
26 
27 #include <unistd.h>
28 
29 /************************* DEFINES SECTION ***********************************/
30 
31 /* Set this equal to the number of elements in _appio_counter_info array */
32 #define APPIO_MAX_COUNTERS 45
33 
35 typedef struct APPIO_register
36 {
37  /* This is used by the framework. It likes it to be !=0 to do something */
38  unsigned int selector;
40 
41 
42 /*
43  * The following structures mimic the ones used by other components. It is more
44  * convenient to use them like that as programming with PAPI makes specific
45  * assumptions for them.
46  */
47 
48 
49 /* This structure is used to build the table of events */
50 
51 typedef struct APPIO_native_event_entry
52 {
54  const char* name;
55  const char* description;
57 
58 
59 typedef struct APPIO_reg_alloc
60 {
63 
64 
65 typedef struct APPIO_control_state
66 {
68  int counter_bits[APPIO_MAX_COUNTERS];
69  long long values[APPIO_MAX_COUNTERS]; // used for caching
71 
72 
73 typedef struct APPIO_context
74 {
77 
78 
79 /************************* GLOBALS SECTION ***********************************
80  *******************************************************************************/
81 
82 #endif /* _PAPI_APPIO_H */
83 
84 /* vim:set ts=4 sw=4 sts=4 et: */
const char * name
Definition: appio.h:54
#define APPIO_MAX_COUNTERS
Definition: appio.h:32
Definition: appio.h:51
APPIO_control_state_t state
Definition: appio.h:75
APPIO_register_t resources
Definition: appio.h:53
const char * description
Definition: appio.h:55
APPIO_register_t ra_bits
Definition: appio.h:61
unsigned int selector
Definition: appio.h:38
static long long values[NUM_EVENTS]
Definition: init_fini.c:10