Go to the source code of this file.
|
| static int | read_sysfs_file (long long *counts) |
| |
| static int | _micpower_init_thread (hwd_context_t *ctx) |
| |
| static int | _micpower_init_component (int cidx) |
| |
| static int | _micpower_init_control_state (hwd_control_state_t *ctl) |
| |
| static int | _micpower_start (hwd_context_t *ctx, hwd_control_state_t *ctl) |
| |
| static int | _micpower_read (hwd_context_t *ctx, hwd_control_state_t *ctl, long long **events, int flags) |
| |
| static int | _micpower_stop (hwd_context_t *ctx, hwd_control_state_t *ctl) |
| |
| static int | _micpower_shutdown_thread (hwd_context_t *ctx) |
| |
| static int | _micpower_shutdown_component () |
| |
| static int | _micpower_ctl (hwd_context_t *ctx, int code, _papi_int_option_t *option) |
| |
| static int | _micpower_update_control_state (hwd_control_state_t *ptr, NativeInfo_t *native, int count, hwd_context_t *ctx) |
| |
| static int | _micpower_set_domain (hwd_control_state_t *cntl, int domain) |
| |
| static int | _micpower_reset (hwd_context_t *ctx, hwd_control_state_t *ctl) |
| |
| static int | _micpower_ntv_enum_events (unsigned int *EventCode, int modifier) |
| |
| static int | _micpower_ntv_code_to_name (unsigned int EventCode, char *name, int len) |
| |
| static int | _micpower_ntv_code_to_descr (unsigned int EventCode, char *name, int len) |
| |
| static int | _micpower_ntv_code_to_info (unsigned int EventCode, PAPI_event_info_t *info) |
| |
◆ INVALID_RESULT
| #define INVALID_RESULT -1000000L |
◆ MICPOWER_NUMBER_OF_NATIVE_EVENTS
| #define MICPOWER_NUMBER_OF_NATIVE_EVENTS 16 |
◆ REFRESH_LAT
| #define REFRESH_LAT 50000 |
◆ _micpower_ctl()
◆ _micpower_init_component()
| static int _micpower_init_component |
( |
int |
cidx | ) |
|
|
static |
Definition at line 193 of file linux-micpower.c.
201 if ( 0 != access(
"/sys/class/micras/power", R_OK ) ) {
char disabled_reason[PAPI_MAX_STR_LEN]
static int is_initialized
papi_vector_t _micpower_vector
PAPI_component_info_t cmp_info
#define MICPOWER_NUMBER_OF_NATIVE_EVENTS
◆ _micpower_init_control_state()
Definition at line 226 of file linux-micpower.c.
long long counts[MICPOWER_MAX_COUNTERS]
static int read_sysfs_file(long long *counts)
long long PAPI_get_real_usec(void)
◆ _micpower_init_thread()
◆ _micpower_ntv_code_to_descr()
| static int _micpower_ntv_code_to_descr |
( |
unsigned int |
EventCode, |
|
|
char * |
name, |
|
|
int |
len |
|
) |
| |
|
static |
Definition at line 434 of file linux-micpower.c.
static MICPOWER_native_event_entry_t _micpower_native_events[]
#define PAPI_NATIVE_AND_MASK
◆ _micpower_ntv_code_to_info()
| static int _micpower_ntv_code_to_info |
( |
unsigned int |
EventCode, |
|
|
PAPI_event_info_t * |
info |
|
) |
| |
|
static |
Definition at line 446 of file linux-micpower.c.
char name[PAPI_MAX_STR_LEN]
char units[PAPI_MIN_STR_LEN]
char long_descr[PAPI_HUGE_STR_LEN]
char symbol[PAPI_HUGE_STR_LEN]
char units[PAPI_MIN_STR_LEN]
static MICPOWER_native_event_entry_t _micpower_native_events[]
#define PAPI_NATIVE_AND_MASK
char description[PAPI_MAX_STR_LEN]
◆ _micpower_ntv_code_to_name()
| static int _micpower_ntv_code_to_name |
( |
unsigned int |
EventCode, |
|
|
char * |
name, |
|
|
int |
len |
|
) |
| |
|
static |
Definition at line 419 of file linux-micpower.c.
static MICPOWER_native_event_entry_t _micpower_native_events[]
#define PAPI_NATIVE_AND_MASK
◆ _micpower_ntv_enum_events()
| static int _micpower_ntv_enum_events |
( |
unsigned int * |
EventCode, |
|
|
int |
modifier |
|
) |
| |
|
static |
Definition at line 380 of file linux-micpower.c.
385 switch ( modifier ) {
402 *EventCode = *EventCode + 1;
#define PAPI_NATIVE_AND_MASK
◆ _micpower_read()
Definition at line 249 of file linux-micpower.c.
char events[MAX_EVENTS][BUFSIZ]
long long counts[MICPOWER_MAX_COUNTERS]
static int read_sysfs_file(long long *counts)
long long PAPI_get_real_usec(void)
◆ _micpower_reset()
◆ _micpower_set_domain()
◆ _micpower_shutdown_component()
| static int _micpower_shutdown_component |
( |
| ) |
|
|
static |
◆ _micpower_shutdown_thread()
◆ _micpower_start()
◆ _micpower_stop()
Definition at line 274 of file linux-micpower.c.
long long counts[MICPOWER_MAX_COUNTERS]
static int read_sysfs_file(long long *counts)
long long PAPI_get_real_usec(void)
◆ _micpower_update_control_state()
Definition at line 328 of file linux-micpower.c.
MICPOWER_register_t resources
static MICPOWER_native_event_entry_t _micpower_native_events[]
#define PAPI_NATIVE_AND_MASK
◆ read_sysfs_file()
| static int read_sysfs_file |
( |
long long * |
counts | ) |
|
|
static |
Definition at line 152 of file linux-micpower.c.
157 fp = fopen(
"/sys/class/micras/power",
"r" );
165 retval&= fscanf(
fp,
"%lld %lld %lld", &counts[
i], &counts[
i+1], &counts[
i+2] );
#define MICPOWER_MAX_COUNTERS
◆ _micpower_native_events
◆ _micpower_vector
◆ is_initialized
◆ num_events