PAPI 7.1.0.0
Loading...
Searching...
No Matches
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
36typedef 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
49typedef struct MICPOWER_native_event_entry
50{
53 char description[PAPI_MAX_STR_LEN];
56
57typedef struct MICPOWER_reg_alloc
58{
61
62
63typedef struct MICPOWER_control_state
64{
65 long long counts[MICPOWER_MAX_COUNTERS]; // used for caching
66 long long lastupdate;
68
69
70typedef struct MICPOWER_context
71{
74
75
76
77/************************* GLOBALS SECTION ***********************************
78 *******************************************************************************/
79
80
81#endif /* _PAPI_MICPOWER_H_ */
#define PAPI_MIN_STR_LEN
Definition: f90papi.h:208
#define PAPI_MAX_STR_LEN
Definition: f90papi.h:77
#define MICPOWER_MAX_COUNTERS
char units[MAX_EVENTS][BUFSIZ]
Definition: powercap_plot.c:15
const char * name
Definition: rocs.c:225
MICPOWER_control_state_t state
MICPOWER_register_t resources
MICPOWER_register_t ra_bits
unsigned int selector