|
PAPI 7.1.0.0
|
powercap component More...

Go to the source code of this file.
Data Structures | |
| struct | _powercap_register_t |
| struct | _powercap_native_event_entry_t |
| struct | _powercap_reg_alloc_t |
| struct | _powercap_control_state_t |
| struct | _powercap_context_t |
Macros | |
| #define | HANDLE_STRING_ERROR {fprintf(stderr,"%s:%i unexpected string function error.\n",__FILE__,__LINE__); exit(-1);} |
| #define | PKG_ENERGY 0 |
| #define | PKG_MAX_ENERGY_RANGE 1 |
| #define | PKG_MAX_POWER_A 2 |
| #define | PKG_POWER_LIMIT_A 3 |
| #define | PKG_TIME_WINDOW_A 4 |
| #define | PKG_MAX_POWER_B 5 |
| #define | PKG_POWER_LIMIT_B 6 |
| #define | PKG_TIME_WINDOW_B 7 |
| #define | PKG_ENABLED 8 |
| #define | PKG_NAME 9 |
| #define | PKG_NUM_EVENTS 10 |
| #define | COMPONENT_ENERGY 10 |
| #define | COMPONENT_MAX_ENERGY_RANGE 11 |
| #define | COMPONENT_MAX_POWER_A 12 |
| #define | COMPONENT_POWER_LIMIT_A 13 |
| #define | COMPONENT_TIME_WINDOW_A 14 |
| #define | COMPONENT_ENABLED 15 |
| #define | COMPONENT_NAME 16 |
| #define | COMPONENT_NUM_EVENTS 7 |
| #define | POWERCAP_MAX_COUNTERS (2 * (PKG_NUM_EVENTS + (3 * COMPONENT_NUM_EVENTS))) |
Variables | |
| static char | read_buff [PAPI_MAX_STR_LEN] |
| static char | write_buff [PAPI_MAX_STR_LEN] |
| static long long | max_pkg_energy_count |
| static long long | max_component_energy_count |
| static int | num_events =0 |
| static int | pkg_events [PKG_NUM_EVENTS] = {PKG_ENERGY, PKG_MAX_ENERGY_RANGE, PKG_MAX_POWER_A, PKG_POWER_LIMIT_A, PKG_TIME_WINDOW_A, PKG_MAX_POWER_B, PKG_POWER_LIMIT_B, PKG_TIME_WINDOW_B, PKG_ENABLED, PKG_NAME} |
| static char * | pkg_event_names [PKG_NUM_EVENTS] = {"ENERGY_UJ", "MAX_ENERGY_RANGE_UJ", "MAX_POWER_A_UW", "POWER_LIMIT_A_UW", "TIME_WINDOW_A_US", "MAX_POWER_B_UW", "POWER_LIMIT_B_UW", "TIME_WINDOW_B", "ENABLED", "NAME"} |
| static char * | pkg_sys_names [PKG_NUM_EVENTS] = {"energy_uj", "max_energy_range_uj", "constraint_0_max_power_uw", "constraint_0_power_limit_uw", "constraint_0_time_window_us", "constraint_1_max_power_uw", "constraint_1_power_limit_uw", "constraint_1_time_window_us", "enabled", "name"} |
| static mode_t | pkg_sys_flags [PKG_NUM_EVENTS] = {O_RDONLY, O_RDONLY, O_RDONLY, O_RDWR, O_RDONLY, O_RDONLY, O_RDWR, O_RDONLY, O_RDONLY, O_RDONLY} |
| static int | component_events [COMPONENT_NUM_EVENTS] = {COMPONENT_ENERGY, COMPONENT_MAX_ENERGY_RANGE, COMPONENT_MAX_POWER_A, COMPONENT_POWER_LIMIT_A, COMPONENT_TIME_WINDOW_A, COMPONENT_ENABLED, COMPONENT_NAME} |
| static char * | component_event_names [COMPONENT_NUM_EVENTS] = {"ENERGY_UJ", "MAX_ENERGY_RANGE_UJ", "MAX_POWER_A_UW", "POWER_LIMIT_A_UW", "TIME_WINDOW_A_US", "ENABLED", "NAME"} |
| static char * | component_sys_names [COMPONENT_NUM_EVENTS] = {"energy_uj", "max_energy_range_uj", "constraint_0_max_power_uw", "constraint_0_power_limit_uw", "constraint_0_time_window_us", "enabled", "name"} |
| static mode_t | component_sys_flags [COMPONENT_NUM_EVENTS] = {O_RDONLY, O_RDONLY, O_RDONLY, O_RDWR, O_RDONLY, O_RDONLY, O_RDONLY} |
| static _powercap_native_event_entry_t | powercap_ntv_events [(2 *(PKG_NUM_EVENTS+(3 *COMPONENT_NUM_EVENTS)))] |
| static int | event_fds [POWERCAP_MAX_COUNTERS] |
| papi_vector_t | _powercap_vector |
To work, the powercap kernel module must be loaded.
To work, the powercap kernel module must be loaded.
Definition in file linux-powercap.c.
| #define COMPONENT_ENABLED 15 |
Definition at line 85 of file linux-powercap.c.
| #define COMPONENT_ENERGY 10 |
Definition at line 80 of file linux-powercap.c.
| #define COMPONENT_MAX_ENERGY_RANGE 11 |
Definition at line 81 of file linux-powercap.c.
| #define COMPONENT_MAX_POWER_A 12 |
Definition at line 82 of file linux-powercap.c.
| #define COMPONENT_NAME 16 |
Definition at line 86 of file linux-powercap.c.
| #define COMPONENT_NUM_EVENTS 7 |
Definition at line 88 of file linux-powercap.c.
| #define COMPONENT_POWER_LIMIT_A 13 |
Definition at line 83 of file linux-powercap.c.
| #define COMPONENT_TIME_WINDOW_A 14 |
Definition at line 84 of file linux-powercap.c.
| #define HANDLE_STRING_ERROR {fprintf(stderr,"%s:%i unexpected string function error.\n",__FILE__,__LINE__); exit(-1);} |
Definition at line 29 of file linux-powercap.c.
| #define PKG_ENABLED 8 |
Definition at line 69 of file linux-powercap.c.
| #define PKG_ENERGY 0 |
Definition at line 61 of file linux-powercap.c.
| #define PKG_MAX_ENERGY_RANGE 1 |
Definition at line 62 of file linux-powercap.c.
| #define PKG_MAX_POWER_A 2 |
Definition at line 63 of file linux-powercap.c.
| #define PKG_MAX_POWER_B 5 |
Definition at line 66 of file linux-powercap.c.
| #define PKG_NAME 9 |
Definition at line 70 of file linux-powercap.c.
| #define PKG_NUM_EVENTS 10 |
Definition at line 72 of file linux-powercap.c.
| #define PKG_POWER_LIMIT_A 3 |
Definition at line 64 of file linux-powercap.c.
| #define PKG_POWER_LIMIT_B 6 |
Definition at line 67 of file linux-powercap.c.
| #define PKG_TIME_WINDOW_A 4 |
Definition at line 65 of file linux-powercap.c.
| #define PKG_TIME_WINDOW_B 7 |
Definition at line 68 of file linux-powercap.c.
| #define POWERCAP_MAX_COUNTERS (2 * (PKG_NUM_EVENTS + (3 * COMPONENT_NUM_EVENTS))) |
Definition at line 94 of file linux-powercap.c.
|
static |
Definition at line 127 of file linux-powercap.c.

|
static |
Definition at line 488 of file linux-powercap.c.
Definition at line 166 of file linux-powercap.c.

|
static |
Definition at line 350 of file linux-powercap.c.
|
static |
Definition at line 157 of file linux-powercap.c.
Definition at line 578 of file linux-powercap.c.

|
static |
Definition at line 588 of file linux-powercap.c.

Definition at line 564 of file linux-powercap.c.

Definition at line 541 of file linux-powercap.c.
|
static |
Definition at line 398 of file linux-powercap.c.

|
static |
Definition at line 531 of file linux-powercap.c.
|
static |
Definition at line 521 of file linux-powercap.c.
|
static |
|
static |
Definition at line 389 of file linux-powercap.c.
|
static |
Definition at line 367 of file linux-powercap.c.

|
static |
Definition at line 380 of file linux-powercap.c.
|
static |
Definition at line 499 of file linux-powercap.c.
|
static |
Definition at line 452 of file linux-powercap.c.

|
static |
Definition at line 119 of file linux-powercap.c.

Definition at line 134 of file linux-powercap.c.

Definition at line 142 of file linux-powercap.c.

| papi_vector_t _powercap_vector |
Definition at line 113 of file linux-powercap.c.
|
static |
Definition at line 90 of file linux-powercap.c.
|
static |
Definition at line 89 of file linux-powercap.c.
|
static |
Definition at line 92 of file linux-powercap.c.
|
static |
Definition at line 91 of file linux-powercap.c.
|
static |
Definition at line 98 of file linux-powercap.c.
Definition at line 56 of file linux-powercap.c.
Definition at line 55 of file linux-powercap.c.
|
static |
Definition at line 58 of file linux-powercap.c.
|
static |
Definition at line 74 of file linux-powercap.c.
| static |
Definition at line 73 of file linux-powercap.c.
|
static |
Definition at line 76 of file linux-powercap.c.
|
static |
Definition at line 75 of file linux-powercap.c.
|
static |
Definition at line 96 of file linux-powercap.c.
|
static |
Definition at line 52 of file linux-powercap.c.
|
static |
Definition at line 53 of file linux-powercap.c.