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
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 */
42
int
subfeat_nr
;
43
}
CORETEMP_register_t
;
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
{
56
char
name
[
PAPI_MAX_STR_LEN
];
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
;
62
CORETEMP_register_t
resources
;
63
}
CORETEMP_native_event_entry_t
;
64
65
typedef
struct
CORETEMP_reg_alloc
66
{
67
CORETEMP_register_t
ra_bits
;
68
}
CORETEMP_reg_alloc_t
;
69
70
71
typedef
struct
CORETEMP_control_state
72
{
73
long
long
counts[
CORETEMP_MAX_COUNTERS
];
// used for caching
74
long
long
lastupdate
;
75
}
CORETEMP_control_state_t
;
76
77
78
typedef
struct
CORETEMP_context
79
{
80
CORETEMP_control_state_t
state
;
81
}
CORETEMP_context_t
;
82
83
84
85
/************************* GLOBALS SECTION ***********************************
86
*******************************************************************************/
87
88
89
#endif
/* _PAPI_CORETEMP_H */
PAPI_MIN_STR_LEN
#define PAPI_MIN_STR_LEN
Definition:
f90papi.h:208
PAPI_MAX_STR_LEN
#define PAPI_MAX_STR_LEN
Definition:
f90papi.h:77
CORETEMP_MAX_COUNTERS
#define CORETEMP_MAX_COUNTERS
Definition:
linux-coretemp.h:34
units
char units[MAX_EVENTS][BUFSIZ]
Definition:
powercap_plot.c:15
name
const char * name
Definition:
rocs.c:225
CORETEMP_context_t
Definition:
linux-coretemp.h:79
CORETEMP_context_t::state
CORETEMP_control_state_t state
Definition:
linux-coretemp.h:80
CORETEMP_control_state_t
Definition:
linux-coretemp.h:72
CORETEMP_control_state_t::lastupdate
long long lastupdate
Definition:
linux-coretemp.h:74
CORETEMP_native_event_entry_t
Definition:
linux-coretemp.h:55
CORETEMP_native_event_entry_t::resources
CORETEMP_register_t resources
Definition:
linux-coretemp.h:62
CORETEMP_native_event_entry_t::stone
int stone
Definition:
linux-coretemp.h:60
CORETEMP_native_event_entry_t::value
long value
Definition:
linux-coretemp.h:61
CORETEMP_reg_alloc_t
Definition:
linux-coretemp.h:66
CORETEMP_reg_alloc_t::ra_bits
CORETEMP_register_t ra_bits
Definition:
linux-coretemp.h:67
CORETEMP_register_t
Definition:
linux-coretemp.h:38
CORETEMP_register_t::subfeat_nr
int subfeat_nr
Definition:
linux-coretemp.h:42
CORETEMP_register_t::selector
unsigned int selector
Definition:
linux-coretemp.h:40
src
components
coretemp
linux-coretemp.h
Generated on Wed Dec 20 2023 18:12:51 for PAPI by
1.9.6