34 #include <sys/types.h>
89 event->event.wrapped_event.type = s;
90 event->event.wrapped_event.size = size;
91 event->event.wrapped_event.ptr = ptr;
112 uint64_t _begin = Timer_tsc ();
128 uint64_t _begin = Timer_tsc ();
static struct Stream_Descriptor * Stream_desc_get()
Getter on the current Stream_Descriptor.
static void Wrapp_OTF_leave(uint64_t end, uint64_t start, Wrapped_symbol symbol)
int OTF_Event_forge(struct MALP_Trace_Event *event, OTF_Event_type enterleave, MALP_Trace_event_type type, uint64_t subtype)
static void Wrapp_OTF_enter(uint64_t timestamp, Wrapped_symbol symbol)
void * p
the void* (to be get by dlsym)
void Event_Packer_push(struct MALP_Trace_Event *event)
Sends an event.
static void MALP_Trace_Event_fill(struct MALP_Trace_Event *event, MALP_Trace_event_type type, uint64_t timestamp, uint64_t duration)
Struct defining an event.
static void Wrapp_Format(struct MALP_Trace_Event *event, Wrapped_symbol s, uint64_t start, uint64_t duration, int64_t size, void *ptr)
static int posix_wrap_gate
MALP_Trace_event_type type
The type of the event.
The event contains wrapped function informations.
#define TEST_LOAD_SYMBOL(a)
void ___TEST_LOAD_SYMBOL(Wrapped_symbol symb, const char *const symbol)
Wrapped_symbol
enum indicating which symbols are wrapped
Union defining a function pointer.
union function_table_elem Tracelib_symbol_table[T_POSIX_COUNT]
The table containing every wrapped symbols.
void POSIX_profile_init()
Enter + Leave events for OTF2 compatibility.
static const char *const Wrapped_symbol_names[T_POSIX_COUNT]
Array containing wrapped symbols names.
static void Wrap_Submit(struct MALP_Trace_Event *event)