|
PAPI 7.1.0.0
|

Go to the source code of this file.
Data Structures | |
| struct | ntv_event_t |
| struct | ntv_event_table_t |
| struct | vendorp_ctx_t |
| struct | event_info_t |
Macros | |
| #define | EVENTS_WIDTH (sizeof(uint32_t) * 8) |
| #define | DEVICE_WIDTH (7) |
| #define | OPCODE_WIDTH (1) |
| #define | QLMASK_WIDTH (2) |
| #define | NAMEID_WIDTH (2) |
| #define | UNUSED_WIDTH (EVENTS_WIDTH - DEVICE_WIDTH - OPCODE_WIDTH - QLMASK_WIDTH - NAMEID_WIDTH) |
| #define | DEVICE_SHIFT (EVENTS_WIDTH - UNUSED_WIDTH - DEVICE_WIDTH) |
| #define | OPCODE_SHIFT (DEVICE_SHIFT - OPCODE_WIDTH) |
| #define | QLMASK_SHIFT (OPCODE_SHIFT - QLMASK_WIDTH) |
| #define | NAMEID_SHIFT (QLMASK_SHIFT - NAMEID_WIDTH) |
| #define | DEVICE_MASK ((0xFFFFFFFF >> (EVENTS_WIDTH - DEVICE_WIDTH)) << DEVICE_SHIFT) |
| #define | OPCODE_MASK ((0xFFFFFFFF >> (EVENTS_WIDTH - OPCODE_WIDTH)) << OPCODE_SHIFT) |
| #define | QLMASK_MASK ((0xFFFFFFFF >> (EVENTS_WIDTH - QLMASK_WIDTH)) << QLMASK_SHIFT) |
| #define | NAMEID_MASK ((0xFFFFFFFF >> (EVENTS_WIDTH - NAMEID_WIDTH)) << NAMEID_SHIFT) |
| #define | DEVICE_FLAG (0x2) |
| #define | OPCODE_FLAG (0x1) |
| #define | OPCODE_EXP (0x0) |
| #define | OPCODE_SUM (0x1) |
Functions | |
| int | vendorp1_init_pre (void) |
| static int | load_profiler_v1_symbols (void) |
| static int | unload_profiler_v1_symbols (void) |
| static int | initialize_event_table (void) |
| static int | finalize_event_table (void) |
| static int | evt_id_create (event_info_t *info, uint32_t *event_id) |
| static int | evt_id_to_info (uint32_t event_id, event_info_t *info) |
| static int | evt_name_to_device (const char *name, int *device) |
| static int | evt_name_to_opcode (const char *name, int *opcode) |
| static int | evt_name_to_basename (const char *name, char *base, int len) |
| int | vendorp1_init (void) |
| int | vendorp1_shutdown (void) |
| static int | init_ctx (unsigned int *events_id, int num_events, vendorp_ctx_t ctx) |
| static int | open_ctx (vendorp_ctx_t ctx) |
| static int | close_ctx (vendorp_ctx_t ctx) |
| static int | finalize_ctx (vendorp_ctx_t ctx) |
| int | vendorp1_ctx_open (unsigned int *events_id, int num_events, vendorp_ctx_t *ctx) |
| int | vendorp1_ctx_start (vendorp_ctx_t ctx) |
| int | vendorp1_ctx_read (vendorp_ctx_t ctx, long long **counters) |
| int | vendorp1_ctx_stop (vendorp_ctx_t ctx) |
| int | vendorp1_ctx_reset (vendorp_ctx_t ctx) |
| int | vendorp1_ctx_close (vendorp_ctx_t ctx) |
| int | vendorp1_evt_enum (unsigned int *event_code, int modifier) |
| int | vendorp1_evt_code_to_name (unsigned int event_code, char *name, int len) |
| int | vendorp1_evt_code_to_descr (unsigned int event_code, char *descr, int len) |
| int | vendorp1_evt_code_to_info (unsigned int event_code, PAPI_event_info_t *info) |
| int | vendorp1_evt_name_to_code (const char *name, unsigned int *event_code) |
| static int | get_events_count (int *num_events) |
| static int | get_events (ntv_event_t *events, int num_events) |
| int | open_ctx (vendorp_ctx_t ctx __attribute__((unused))) |
| int | close_ctx (vendorp_ctx_t ctx __attribute__((unused))) |
Variables | |
| struct { | |
| char * name | |
| char * descr | |
| } | vendor_events [] |
| static ntv_event_table_t | ntv_table |
| static ntv_event_table_t * | ntv_table_p |
| #define DEVICE_FLAG (0x2) |
Definition at line 33 of file vendor_profiler_v1.c.
| #define DEVICE_MASK ((0xFFFFFFFF >> (EVENTS_WIDTH - DEVICE_WIDTH)) << DEVICE_SHIFT) |
Definition at line 29 of file vendor_profiler_v1.c.
| #define DEVICE_SHIFT (EVENTS_WIDTH - UNUSED_WIDTH - DEVICE_WIDTH) |
Definition at line 25 of file vendor_profiler_v1.c.
| #define DEVICE_WIDTH (7) |
Definition at line 20 of file vendor_profiler_v1.c.
| #define EVENTS_WIDTH (sizeof(uint32_t) * 8) |
Event identifier encoding format: +-----------------—+----—+-+–+–+ | unused | dev | | |id| +-----------------—+----—+-+–+–+
unused : 18 bits device : 7 bits ([0 - 127] devices) function : 1 bits (exponential or sum) qlmask : 2 bits (qualifier mask) nameid : 2 bits ([0 - 3] event names)
Definition at line 19 of file vendor_profiler_v1.c.
| #define NAMEID_MASK ((0xFFFFFFFF >> (EVENTS_WIDTH - NAMEID_WIDTH)) << NAMEID_SHIFT) |
Definition at line 32 of file vendor_profiler_v1.c.
| #define NAMEID_SHIFT (QLMASK_SHIFT - NAMEID_WIDTH) |
Definition at line 28 of file vendor_profiler_v1.c.
| #define NAMEID_WIDTH (2) |
Definition at line 23 of file vendor_profiler_v1.c.
| #define OPCODE_EXP (0x0) |
Definition at line 35 of file vendor_profiler_v1.c.
| #define OPCODE_FLAG (0x1) |
Definition at line 34 of file vendor_profiler_v1.c.
| #define OPCODE_MASK ((0xFFFFFFFF >> (EVENTS_WIDTH - OPCODE_WIDTH)) << OPCODE_SHIFT) |
Definition at line 30 of file vendor_profiler_v1.c.
| #define OPCODE_SHIFT (DEVICE_SHIFT - OPCODE_WIDTH) |
Definition at line 26 of file vendor_profiler_v1.c.
| #define OPCODE_SUM (0x1) |
Definition at line 36 of file vendor_profiler_v1.c.
| #define OPCODE_WIDTH (1) |
Definition at line 21 of file vendor_profiler_v1.c.
| #define QLMASK_MASK ((0xFFFFFFFF >> (EVENTS_WIDTH - QLMASK_WIDTH)) << QLMASK_SHIFT) |
Definition at line 31 of file vendor_profiler_v1.c.
| #define QLMASK_SHIFT (OPCODE_SHIFT - QLMASK_WIDTH) |
Definition at line 27 of file vendor_profiler_v1.c.
| #define QLMASK_WIDTH (2) |
Definition at line 22 of file vendor_profiler_v1.c.
| #define UNUSED_WIDTH (EVENTS_WIDTH - DEVICE_WIDTH - OPCODE_WIDTH - QLMASK_WIDTH - NAMEID_WIDTH) |
Definition at line 24 of file vendor_profiler_v1.c.
| int close_ctx | ( | vendorp_ctx_t ctx | __attribute__(unused) | ) |
Definition at line 523 of file vendor_profiler_v1.c.
|
static |

|
static |
Definition at line 559 of file vendor_profiler_v1.c.

|
static |
Definition at line 569 of file vendor_profiler_v1.c.

Definition at line 625 of file vendor_profiler_v1.c.

Definition at line 592 of file vendor_profiler_v1.c.

Definition at line 603 of file vendor_profiler_v1.c.


|
static |
Definition at line 529 of file vendor_profiler_v1.c.

|
static |
Definition at line 496 of file vendor_profiler_v1.c.

|
static |
Definition at line 547 of file vendor_profiler_v1.c.

Definition at line 538 of file vendor_profiler_v1.c.

Definition at line 505 of file vendor_profiler_v1.c.

|
static |
Definition at line 466 of file vendor_profiler_v1.c.


|
static |
| int open_ctx | ( | vendorp_ctx_t ctx | __attribute__(unused) | ) |
Definition at line 517 of file vendor_profiler_v1.c.
|
static |

|
static |
| int vendorp1_ctx_close | ( | vendorp_ctx_t | ctx | ) |
Definition at line 215 of file vendor_profiler_v1.c.


Definition at line 132 of file vendor_profiler_v1.c.


Definition at line 172 of file vendor_profiler_v1.c.


| int vendorp1_ctx_reset | ( | vendorp_ctx_t | ctx | ) |
Definition at line 208 of file vendor_profiler_v1.c.

| int vendorp1_ctx_start | ( | vendorp_ctx_t | ctx | ) |
Definition at line 165 of file vendor_profiler_v1.c.

| int vendorp1_ctx_stop | ( | vendorp_ctx_t | ctx | ) |
Definition at line 329 of file vendor_profiler_v1.c.


| int vendorp1_evt_code_to_info | ( | unsigned int | event_code, |
| PAPI_event_info_t * | info | ||
| ) |
Definition at line 344 of file vendor_profiler_v1.c.


Definition at line 294 of file vendor_profiler_v1.c.


Definition at line 244 of file vendor_profiler_v1.c.


Definition at line 394 of file vendor_profiler_v1.c.


| int vendorp1_init | ( | void | ) |
Definition at line 93 of file vendor_profiler_v1.c.


| int vendorp1_init_pre | ( | void | ) |
| int vendorp1_shutdown | ( | void | ) |
Definition at line 118 of file vendor_profiler_v1.c.


| char* descr |
Definition at line 57 of file vendor_profiler_v1.c.
| char* name |
Definition at line 56 of file vendor_profiler_v1.c.
|
static |
Definition at line 65 of file vendor_profiler_v1.c.
|
static |
Definition at line 66 of file vendor_profiler_v1.c.
| struct { ... } vendor_events[] |