A component for Myricom MX (Myrinet Express)
More...
Go to the source code of this file.
|
| static int | read_mx_counters (long long *counters) |
| |
| static int | _mx_init_component (int cidx) |
| |
| static int | _mx_init_thread (hwd_context_t *ctx) |
| |
| static int | _mx_shutdown_component (void) |
| |
| static int | _mx_shutdown_thread (hwd_context_t *ctx) |
| |
| static int | _mx_init_control_state (hwd_control_state_t *ctl) |
| |
| static int | _mx_update_control_state (hwd_control_state_t *ctl, NativeInfo_t *native, int count, hwd_context_t *ctx) |
| |
| static int | _mx_start (hwd_context_t *ctx, hwd_control_state_t *ctl) |
| |
| static int | _mx_stop (hwd_context_t *ctx, hwd_control_state_t *ctl) |
| |
| static int | _mx_read (hwd_context_t *ctx, hwd_control_state_t *ctl, long long **events, int flags) |
| |
| static int | _mx_reset (hwd_context_t *ctx, hwd_control_state_t *ctrl) |
| |
| static int | _mx_ctl (hwd_context_t *ctx, int code, _papi_int_option_t *option) |
| |
| static int | _mx_set_domain (hwd_control_state_t *cntrl, int domain) |
| |
| static int | _mx_ntv_code_to_name (unsigned int EventCode, char *name, int len) |
| |
| static int | _mx_ntv_code_to_descr (unsigned int EventCode, char *name, int len) |
| |
| static int | _mx_ntv_enum_events (unsigned int *EventCode, int modifier) |
| |
◆ LINELEN
◆ MX_MAX_COUNTER_TERMS
◆ MX_MAX_COUNTERS
| #define MX_MAX_COUNTERS 100 |
◆ _mx_ctl()
◆ _mx_init_component()
| static int _mx_init_component |
( |
int |
cidx | ) |
|
|
static |
Definition at line 223 of file linux-mx.c.
227 char test_string[BUFSIZ];
234 if (fgets(test_string,BUFSIZ,
fff)==NULL) {
236 strncpy(
mx_counters_exe,
"./components/mx/utils/fake_mx_counters 2> /dev/null",BUFSIZ);
238 if (fgets(test_string,BUFSIZ,
fff)==NULL) {
char disabled_reason[PAPI_MAX_STR_LEN]
static char mx_counters_exe[BUFSIZ]
PAPI_component_info_t cmp_info
◆ _mx_init_control_state()
◆ _mx_init_thread()
◆ _mx_ntv_code_to_descr()
| static int _mx_ntv_code_to_descr |
( |
unsigned int |
EventCode, |
|
|
char * |
name, |
|
|
int |
len |
|
) |
| |
|
static |
Definition at line 464 of file linux-mx.c.
static const MX_native_event_entry_t mx_native_table[]
◆ _mx_ntv_code_to_name()
| static int _mx_ntv_code_to_name |
( |
unsigned int |
EventCode, |
|
|
char * |
name, |
|
|
int |
len |
|
) |
| |
|
static |
Definition at line 449 of file linux-mx.c.
static const MX_native_event_entry_t mx_native_table[]
◆ _mx_ntv_enum_events()
| static int _mx_ntv_enum_events |
( |
unsigned int * |
EventCode, |
|
|
int |
modifier |
|
) |
| |
|
static |
Definition at line 478 of file linux-mx.c.
488 int index = *EventCode;
491 *EventCode = *EventCode + 1;
static const MX_native_event_entry_t mx_native_table[]
◆ _mx_read()
Definition at line 365 of file linux-mx.c.
long long start_count[MX_MAX_COUNTERS]
long long current_count[MX_MAX_COUNTERS]
static int read_mx_counters(long long *counters)
char events[MAX_EVENTS][BUFSIZ]
int which_counter[MX_MAX_COUNTERS]
long long difference[MX_MAX_COUNTERS]
◆ _mx_reset()
Definition at line 390 of file linux-mx.c.
static int _mx_start(hwd_context_t *ctx, hwd_control_state_t *ctl)
◆ _mx_set_domain()
◆ _mx_shutdown_component()
| static int _mx_shutdown_component |
( |
void |
| ) |
|
|
static |
◆ _mx_shutdown_thread()
◆ _mx_start()
Definition at line 321 of file linux-mx.c.
long long start_count[MX_MAX_COUNTERS]
long long current_count[MX_MAX_COUNTERS]
static int read_mx_counters(long long *counters)
int which_counter[MX_MAX_COUNTERS]
◆ _mx_stop()
Definition at line 346 of file linux-mx.c.
long long current_count[MX_MAX_COUNTERS]
static int read_mx_counters(long long *counters)
int which_counter[MX_MAX_COUNTERS]
◆ _mx_update_control_state()
Definition at line 298 of file linux-mx.c.
int which_counter[MX_MAX_COUNTERS]
◆ read_mx_counters()
| static int read_mx_counters |
( |
long long * |
counters | ) |
|
|
static |
Definition at line 167 of file linux-mx.c.
196 if (line[
i+1]!=
'\0') {
198 sscanf(&line[
i+1],
"%lld",&counters[linenum]);
static char mx_counters_exe[BUFSIZ]
◆ _mx_vector
◆ mx_counters_exe
| char mx_counters_exe[BUFSIZ] |
|
static |
◆ mx_native_table
◆ num_events