27 uint64_t base_index = 0;
44 return base_index + subtype;
122 struct OTF_Event *otf_event = &
event->event.otf;
124 otf_event->
type = enterleave;
141 if( otf_event->
str_id < 0 )
143 printf(
"Failed to resolve an event in %s\n", __FUNCTION__);
158 printf(
"Not an OTF event\n");
162 struct OTF_Event *otf_event = &
event->event.otf;
164 printf(
"================\n");
167 printf(
"TID : %ld\n", event->
tid );
170 printf(
"================\n");
static const char *const OTF_Event_names[MALP_OTF_ANALYSER_INFO_COUNT]
static const char *const MPI_Event_names[T_MPI_COUNT]
int OTF_Event_forge(struct MALP_Trace_Event *event, OTF_Event_type enterleave, MALP_Trace_event_type type, uint64_t subtype)
void OTF_Event_print(struct MALP_Trace_Event *event)
char * OTF_Event_resolve(uint64_t str_id)
void OTF_Event_forge_init()
Struct defining an event.
MALP_Trace_event_type type
The type of the event.
The event contains wrapped function informations.
uint64_t tid
The stream unique id.
MALP_Trace_event_type
enum defining event types
uint64_t OTF_Event_resolve_str_id(MALP_Trace_event_type type, uint64_t subtype)
uint64_t timestamp
Creation date.
char * OTF_Str_ids[OTF_EVENT_COUNT]
Enter + Leave events for OTF2 compatibility.
The event contains MPI informations.
static const char *const Wrapped_symbol_names[T_POSIX_COUNT]
Array containing wrapped symbols names.
void OTF_Event_forge_release()
OTF_Event_category category
int OTF_Event_set(uint64_t str_id, char *data)