PAPI  5.4.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
linux-micpower.h
Go to the documentation of this file.
1 /****************************/
2 /* THIS IS OPEN SOURCE CODE */
3 /****************************/
4 
22 #ifndef _PAPI_MICPOWER_H_
23 #define _PAPI_MICPOWER_H_
24 
25 #include <unistd.h>
26 #include <dirent.h>
27 
28 
29 
30 /************************* DEFINES SECTION ***********************************
31  *******************************************************************************/
32 /* this number assumes that there will never be more events than indicated */
33 #define MICPOWER_MAX_COUNTERS 16
34 
36 typedef struct {
37  unsigned int selector;
39 
40 /*
41  * The following structures mimic the ones used by other components. It is more
42  * convenient to use them like that as programming with PAPI makes specific
43  * assumptions for them.
44  */
45 
46 
47 
49 typedef struct MICPOWER_native_event_entry
50 {
52  char units[PAPI_MIN_STR_LEN];
53  char description[PAPI_MAX_STR_LEN];
56 
57 typedef struct MICPOWER_reg_alloc
58 {
61 
62 
63 typedef struct MICPOWER_control_state
64 {
65  long long counts[MICPOWER_MAX_COUNTERS]; // used for caching
66  long long lastupdate;
68 
69 
70 typedef struct MICPOWER_context
71 {
74 
75 
76 
77 /************************* GLOBALS SECTION ***********************************
78  *******************************************************************************/
79 
80 
81 #endif /* _PAPI_MICPOWER_H_ */
MICPOWER_register_t resources
MICPOWER_register_t ra_bits
unsigned int selector
MICPOWER_control_state_t state
char * name
Definition: iozone.c:23648
#define MICPOWER_MAX_COUNTERS
#define PAPI_MIN_STR_LEN
Definition: papi.h:462
#define PAPI_MAX_STR_LEN
Definition: papi.h:463