PAPI 7.1.0.0
Loading...
Searching...
No Matches
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
37typedef 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
54typedef struct CORETEMP_native_event_entry
55{
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
65typedef struct CORETEMP_reg_alloc
66{
69
70
71typedef struct CORETEMP_control_state
72{
73 long long counts[CORETEMP_MAX_COUNTERS]; // used for caching
74 long long lastupdate;
76
77
78typedef struct CORETEMP_context
79{
82
83
84
85/************************* GLOBALS SECTION ***********************************
86 *******************************************************************************/
87
88
89#endif /* _PAPI_CORETEMP_H */
#define PAPI_MIN_STR_LEN
Definition: f90papi.h:208
#define PAPI_MAX_STR_LEN
Definition: f90papi.h:77
#define CORETEMP_MAX_COUNTERS
char units[MAX_EVENTS][BUFSIZ]
Definition: powercap_plot.c:15
const char * name
Definition: rocs.c:225
CORETEMP_control_state_t state
CORETEMP_register_t resources
int stone
long value
CORETEMP_register_t ra_bits
unsigned int selector