|
PAPI 7.1.0.0
|

Go to the source code of this file.
Data Structures | |
| struct | host_micpower_reg_alloc_t |
| struct | host_micpower_native_event_entry_t |
| struct | host_micpower_control_state_t |
| struct | host_micpower_context_t |
| struct | powers |
| union | power_t |
Macros | |
| #define | MAX_DEVICES (32) |
| This component wraps the MicAccessAPI to provide hostside power information for attached Intel Xeon Phi (MIC) cards. | |
| #define | EVENTS_PER_DEVICE 10 |
| #define | UPDATEFREQ 500000 |
| #define | MICACCESS_API __attribute__((weak)) |
Variables | |
| void(* | _dl_non_dynamic_init )(void) |
| host_micpower_register_t | |
| static MicDeviceOnSystem | adapters [MAX_DEVICES] |
| static HANDLE | handles [MAX_DEVICES] |
| static long long | lastupdate [MAX_DEVICES] |
| static HANDLE | accessHandle = NULL |
| static U32 | nAdapters = MAX_DEVICES |
| static void * | mic_access = NULL |
| static void * | scif_access = NULL |
| const char *(* | MicGetErrorStringPtr )(U32) |
| U32(* | MicCloseAdapterPtr )(HANDLE) |
| U32(* | MicInitAPIPtr )(HANDLE *, ETarget, MicDeviceOnSystem *, U32 *) |
| U32(* | MicCloseAPIPtr )(HANDLE *) |
| U32(* | MicInitAdapterPtr )(HANDLE *, MicDeviceOnSystem *) |
| U32(* | MicGetPowerUsagePtr )(HANDLE, MicPwrUsage *) |
| static host_micpower_native_event_entry_t * | native_events_table = NULL |
| static power_t | cached_values [MAX_DEVICES] |
| papi_vector_t | _host_micpower_vector |
| #define EVENTS_PER_DEVICE 10 |
Definition at line 14 of file linux-host_micpower.c.
| #define MAX_DEVICES (32) |
Definition at line 13 of file linux-host_micpower.c.
| #define MICACCESS_API __attribute__((weak)) |
Definition at line 79 of file linux-host_micpower.c.
| #define UPDATEFREQ 500000 |
| int _host_micpower_ctl | ( | hwd_context_t * | ctx, |
| int | code, | ||
| _papi_int_option_t * | option | ||
| ) |
Definition at line 560 of file linux-host_micpower.c.
Definition at line 195 of file linux-host_micpower.c.

| int _host_micpower_init_control_state | ( | hwd_control_state_t * | ctl | ) |
Definition at line 348 of file linux-host_micpower.c.
| int _host_micpower_init_thread | ( | hwd_context_t * | ctx | ) |
Definition at line 326 of file linux-host_micpower.c.
Definition at line 536 of file linux-host_micpower.c.
| int _host_micpower_ntv_code_to_info | ( | unsigned int | EventCode, |
| PAPI_event_info_t * | info | ||
| ) |
Definition at line 548 of file linux-host_micpower.c.
Definition at line 524 of file linux-host_micpower.c.
Definition at line 499 of file linux-host_micpower.c.
| int _host_micpower_read | ( | hwd_context_t * | ctx, |
| hwd_control_state_t * | ctl, | ||
| long long ** | events, | ||
| int | flags | ||
| ) |
Definition at line 418 of file linux-host_micpower.c.

| int _host_micpower_set_domain | ( | hwd_control_state_t * | ctl, |
| int | domain | ||
| ) |
Definition at line 569 of file linux-host_micpower.c.
| int _host_micpower_shutdown_component | ( | void | ) |
Definition at line 332 of file linux-host_micpower.c.
| int _host_micpower_shutdown_thread | ( | hwd_context_t * | ctx | ) |
Definition at line 343 of file linux-host_micpower.c.
| int _host_micpower_start | ( | hwd_context_t * | ctx, |
| hwd_control_state_t * | ctl | ||
| ) |
Definition at line 379 of file linux-host_micpower.c.
| int _host_micpower_stop | ( | hwd_context_t * | ctx, |
| hwd_control_state_t * | ctl | ||
| ) |
Definition at line 461 of file linux-host_micpower.c.

| int _host_micpower_update_control_state | ( | hwd_control_state_t * | ctl, |
| NativeInfo_t * | info, | ||
| int | count, | ||
| hwd_context_t * | ctx | ||
| ) |
Definition at line 355 of file linux-host_micpower.c.
|
static |
Definition at line 116 of file linux-host_micpower.c.

| U32 MICACCESS_API MicCloseAdapter | ( | HANDLE | ) |
| U32 MICACCESS_API MicCloseAPI | ( | HANDLE * | ) |
| const char * MicGetErrorString | ( | U32 | ) |
| U32 MICACCESS_API MicGetPowerUsage | ( | HANDLE | , |
| MicPwrUsage * | |||
| ) |
| U32 MICACCESS_API MicInitAdapter | ( | HANDLE * | , |
| MicDeviceOnSystem * | |||
| ) |
| U32 MICACCESS_API MicInitAPI | ( | HANDLE * | , |
| ETarget | , | ||
| MicDeviceOnSystem * | , | ||
| U32 * | |||
| ) |
Definition at line 387 of file linux-host_micpower.c.

| void(* _dl_non_dynamic_init) (void) | ( | void | ) |
Corresponds to counter slot, indexed from 1, 0 has a special meaning
Definition at line 31 of file linux-host_micpower.c.
| papi_vector_t _host_micpower_vector |
Definition at line 577 of file linux-host_micpower.c.
|
static |
Definition at line 72 of file linux-host_micpower.c.
|
static |
Definition at line 69 of file linux-host_micpower.c.
|
static |
Definition at line 113 of file linux-host_micpower.c.
|
static |
Definition at line 70 of file linux-host_micpower.c.
| host_micpower_register_t |
Definition at line 41 of file linux-host_micpower.c.
|
static |
Definition at line 71 of file linux-host_micpower.c.
|
static |
Definition at line 75 of file linux-host_micpower.c.
| U32(* MicCloseAdapterPtr) (HANDLE) | ( | HANDLE | ) |
Definition at line 88 of file linux-host_micpower.c.
| U32(* MicCloseAPIPtr) (HANDLE *) | ( | HANDLE * | ) |
Definition at line 90 of file linux-host_micpower.c.
| const char *(* MicGetErrorStringPtr) (U32) | ( | U32 | ) |
Definition at line 87 of file linux-host_micpower.c.
| U32(* MicGetPowerUsagePtr) (HANDLE, MicPwrUsage *) | ( | HANDLE | , |
| MicPwrUsage * | |||
| ) |
Definition at line 92 of file linux-host_micpower.c.
| U32(* MicInitAdapterPtr) (HANDLE *, MicDeviceOnSystem *) | ( | HANDLE * | , |
| MicDeviceOnSystem * | |||
| ) |
Definition at line 91 of file linux-host_micpower.c.
| U32(* MicInitAPIPtr) (HANDLE *, ETarget, MicDeviceOnSystem *, U32 *) | ( | HANDLE * | , |
| ETarget | , | ||
| MicDeviceOnSystem * | , | ||
| U32 * | |||
| ) |
Definition at line 89 of file linux-host_micpower.c.
|
static |
Definition at line 73 of file linux-host_micpower.c.
|
static |
Definition at line 93 of file linux-host_micpower.c.
|
static |
Definition at line 76 of file linux-host_micpower.c.