PAPI 7.1.0.0
Loading...
Searching...
No Matches
linux-powercap-ppc.h
Go to the documentation of this file.
1/****************************/
2/* THIS IS OPEN SOURCE CODE */
3/****************************/
4
19#ifndef _POWERCAP_PPC_H
20#define _POWERCAP_PPC_H
21
22/* Headers required by PAPI */
23#include "papi.h"
24#include "papi_internal.h"
25#include "papi_vector.h"
26#include "papi_memory.h"
27
28#define papi_powercap_ppc_lock() _papi_hwi_lock(COMPONENT_LOCK);
29#define papi_powercap_ppc_unlock() _papi_hwi_unlock(COMPONENT_LOCK);
30
31typedef struct _powercap_ppc_register {
32 unsigned int selector;
34
35typedef struct _powercap_ppc_native_event_entry {
38 char description[PAPI_MAX_STR_LEN];
42 int type;
46
47typedef struct _powercap_ppc_reg_alloc {
50
51// package events
52// powercap-current powercap-max powercap-min
53#define PKG_MIN_POWER 0
54#define PKG_MAX_POWER 1
55#define PKG_CUR_POWER 2
56
57#define PKG_NUM_EVENTS 3
58#define POWERCAP_MAX_COUNTERS (PKG_NUM_EVENTS)
59
60typedef struct _powercap_ppc_control_state {
62 long long which_counter[POWERCAP_MAX_COUNTERS];
63 long long lastupdate;
66
67typedef struct _powercap_ppc_context {
68 long long start_value[POWERCAP_MAX_COUNTERS];
71
72#endif /* _POWERCAP_PPC_H */
static long count
#define PAPI_MIN_STR_LEN
Definition: f90papi.h:208
#define PAPI_MAX_STR_LEN
Definition: f90papi.h:77
#define POWERCAP_MAX_COUNTERS
Return codes and api definitions.
char units[MAX_EVENTS][BUFSIZ]
Definition: powercap_plot.c:15
const char * name
Definition: rocs.c:225
_powercap_ppc_control_state_t state
int socket_id
int return_type
int event_id
int type
_powercap_ppc_register_t resources
int component_id
_powercap_ppc_register_t ra_bits