14 registered_sync_components = info;
25 int ret = PAPI_create_eventset(ev_s);
26 TMSG(PAPI,
"PAPI_create_eventset = %d, eventSet = %d", ret, *ev_s);
28 hpcrun_abort(
"Failure: PAPI_create_eventset.Return code = %d ==> %s",
29 ret, PAPI_strerror(ret));
36 return PAPI_add_event(ev_s, ev);
42 const char* name = PAPI_get_component_info(cidx)->name;
44 TMSG(PAPI,
"looking for sync get_event_set for component idx=%d(%s)", cidx, name);
46 if (item->pred(name))
return item->get_event_set;
54 const char* name = PAPI_get_component_info(cidx)->name;
56 TMSG(PAPI,
"looking for sync add_event for component idx=%d(%s)", cidx, name);
58 if (item->pred(name))
return item->add_event;
66 const char* name = PAPI_get_component_info(cidx)->name;
68 TMSG(PAPI,
"looking for sync finalize_event_set for component idx=%d(%s)", cidx, name);
70 if (item->pred(name))
return item->finalize_event_set;
78 const char* name = PAPI_get_component_info(cidx)->name;
80 TMSG(PAPI,
"checking component idx %d (name %s) to see if it is synchronous", cidx, name);
82 if (item->pred(name)) {
83 TMSG(PAPI,
"Component %s IS a synchronous component", name);
93 const char* name = PAPI_get_component_info(cidx)->name;
95 TMSG(PAPI,
"looking for sync setup for component idx=%d(%s)", cidx, name);
97 if (item->pred(name))
return item->sync_setup;
105 const char* name = PAPI_get_component_info(cidx)->name;
107 TMSG(PAPI,
"looking for sync teardown for component idx=%d(%s)", cidx, name);
109 if (item->pred(name))
return item->sync_teardown;
117 const char* name = PAPI_get_component_info(cidx)->name;
119 TMSG(PAPI,
"looking for sync start for component idx=%d(%s)", cidx, name);
121 if (item->pred(name))
return item->sync_start;
129 const char* name = PAPI_get_component_info(cidx)->name;
131 TMSG(PAPI,
"looking for sync stop for component idx=%d(%s)", cidx, name);
133 if (item->pred(name))
return item->sync_stop;
stop_proc_t sync_stop_for_component(int cidx)
get_event_set_proc_t component_get_event_set(int cidx)
struct sync_info_list_t * next
add_event_proc_t component_add_event_proc(int cidx)
void(* start_proc_t)(void)
void(* setup_proc_t)(void)
finalize_event_set_proc_t component_finalize_event_set(int cidx)
teardown_proc_t sync_teardown_for_component(int cidx)
#define hpcrun_abort(...)
bool component_uses_sync_samples(int cidx)
void papi_c_sync_register(sync_info_list_t *info)
int(* add_event_proc_t)(int ev_s, int evcode)
void(* finalize_event_set_proc_t)(void)
void(* stop_proc_t)(void)
void std_get_event_set(int *ev_s)
static sync_info_list_t * registered_sync_components
void(* get_event_set_proc_t)(int *ev_s)
void(* teardown_proc_t)(void)
int std_add_event(int ev_s, int ev)
setup_proc_t sync_setup_for_component(int cidx)
start_proc_t sync_start_for_component(int cidx)