PAPI  5.3.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
linux-coretemp.h
Go to the documentation of this file.
1 /****************************/
2 /* THIS IS OPEN SOURCE CODE */
3 /****************************/
4 
23 #ifndef _PAPI_CORETEMP_H
24 #define _PAPI_CORETEMP_H
25 
26 #include <unistd.h>
27 #include <dirent.h>
28 
29 
30 
31 /************************* DEFINES SECTION ***********************************
32  *******************************************************************************/
33 /* this number assumes that there will never be more events than indicated */
34 #define CORETEMP_MAX_COUNTERS 512
35 
37 typedef struct CORETEMP_register
38 {
39  /* This is used by the framework.It likes it to be !=0 to do somehting */
40  unsigned int selector;
41  /* These are the only information needed to locate a libsensors event */
44 
45 /*
46  * The following structures mimic the ones used by other components. It is more
47  * convenient to use them like that as programming with PAPI makes specific
48  * assumptions for them.
49  */
50 
51 
52 
54 typedef struct CORETEMP_native_event_entry
55 {
57  char units[PAPI_MIN_STR_LEN];
58  char description[PAPI_MAX_STR_LEN];
59  char path[PATH_MAX];
60  int stone; /* some counters are set in stone, a max temperature is just that... */
61  long value;
64 
65 typedef struct CORETEMP_reg_alloc
66 {
69 
70 
71 typedef struct CORETEMP_control_state
72 {
73  long long counts[CORETEMP_MAX_COUNTERS]; // used for caching
74  long long lastupdate;
76 
77 
78 typedef struct CORETEMP_context
79 {
82 
83 
84 
85 /************************* GLOBALS SECTION ***********************************
86  *******************************************************************************/
87 
88 
89 #endif /* _PAPI_CORETEMP_H */
CORETEMP_control_state_t state
#define PAPI_MAX_STR_LEN
Definition: fpapi.h:43
CORETEMP_register_t ra_bits
#define PAPI_MIN_STR_LEN
Definition: fpapi.h:41
unsigned int selector
CORETEMP_register_t resources
#define CORETEMP_MAX_COUNTERS
int stone
#define PATH_MAX
Definition: fileop.c:68
char * name
Definition: iozone.c:23648
long value