This file contains the 'high level' interface to PAPI. BASIC is a high level language. ;-)
More...
Go to the source code of this file.
|
| int | _hl_rate_calls (float *real_time, float *proc_time, int *events, long long *values, long long *ins, float *rate, int mode) |
| |
| void | _internal_cleanup_hl_info (HighLevelInfo *state) |
| |
| int | _internal_check_state (HighLevelInfo **state) |
| |
| int | _internal_start_hl_counters (HighLevelInfo *state) |
| |
| int | _internal_hl_read_cnts (long long *values, int array_len, int flag) |
| |
| int | PAPI_flips (float *rtime, float *ptime, long long *flpins, float *mflips) |
| |
| int | PAPI_flops (float *rtime, float *ptime, long long *flpops, float *mflops) |
| |
| int | PAPI_ipc (float *rtime, float *ptime, long long *ins, float *ipc) |
| |
| int | PAPI_epc (int event, float *rtime, float *ptime, long long *ref, long long *core, long long *evt, float *epc) |
| |
| int | PAPI_num_counters (void) |
| |
| int | PAPI_start_counters (int *events, int array_len) |
| |
| int | PAPI_read_counters (long long *values, int array_len) |
| |
| int | PAPI_accum_counters (long long *values, int array_len) |
| |
| int | PAPI_stop_counters (long long *values, int array_len) |
| |
| void | _papi_hwi_shutdown_highlevel () |
| |
◆ HL_ACCUM
◆ HL_EPC
◆ HL_FLIP
◆ HL_FLOP
◆ HL_IPC
◆ HL_READ
◆ HL_START
◆ HL_STOP
◆ _hl_rate_calls()
| int _hl_rate_calls |
( |
float * |
real_time, |
|
|
float * |
proc_time, |
|
|
int * |
events, |
|
|
long long * |
values, |
|
|
long long * |
ins, |
|
|
float * |
rate, |
|
|
int |
mode |
|
) |
| |
Definition at line 409 of file papi_hl.c.
488 *rate = (float) ((
float)
values[0] / (float) (
values[1]));
int PAPI_stop(int EventSet, long long *values)
long long initial_proc_time
long long PAPI_get_virt_usec(void)
long long initial_real_time
int _internal_check_state(HighLevelInfo **state)
int PAPI_add_events(int EventSet, int *Events, int number)
char events[MAX_EVENTS][BUFSIZ]
int PAPI_cleanup_eventset(int EventSet)
void _internal_cleanup_hl_info(HighLevelInfo *state)
long long PAPI_get_real_usec(void)
int PAPI_start(int EventSet)
static long long values[NUM_EVENTS]
◆ _internal_check_state()
This function is called to determine the state of the system. We may as well set the HighLevelInfo so you don't have to look it up again.
Definition at line 100 of file papi_hl.c.
122 !=
PAPI_OK || state == NULL ) {
128 state->EventSet = -1;
#define PAPI_HIGH_LEVEL_INITED
int PAPI_get_thr_specific(int tag, void **ptr)
int PAPI_library_init(int version)
inline_static int _papi_hwi_lock(int lck)
inline_static int _papi_hwi_unlock(int lck)
int PAPI_create_eventset(int *EventSet)
int PAPI_set_thr_specific(int tag, void *ptr)
#define PAPI_HIGH_LEVEL_TLS
◆ _internal_cleanup_hl_info()
Definition at line 152 of file papi_hl.c.
long long initial_proc_time
long long initial_real_time
◆ _internal_hl_read_cnts()
| int _internal_hl_read_cnts |
( |
long long * |
values, |
|
|
int |
array_len, |
|
|
int |
flag |
|
) |
| |
Definition at line 643 of file papi_hl.c.
int PAPI_reset(int EventSet)
int _internal_check_state(HighLevelInfo **state)
int PAPI_accum(int EventSet, long long *values)
int PAPI_read(int EventSet, long long *values)
static long long values[NUM_EVENTS]
◆ _internal_start_hl_counters()
Make sure to allocate space for values
Definition at line 146 of file papi_hl.c.
int PAPI_start(int EventSet)
◆ _papi_hwi_shutdown_highlevel()
| void _papi_hwi_shutdown_highlevel |
( |
| ) |
|
Definition at line 840 of file papi_hl.c.
int PAPI_get_thr_specific(int tag, void **ptr)
#define PAPI_HIGH_LEVEL_TLS