#endif
#include <string.h>
+#include <inttypes.h>
#include <lttv/lttv.h>
#include <lttv/attribute.h>
#include <lttv/hook.h>
LttEvent *e = ltt_tracefile_get_event(tfs->parent.tf);
ltt_event_position(e, a_event_position);
ltt_event_position_get(a_event_position, &tf, &nb_block, &offset, &tsc);
- fprintf(stderr,"Event %s %lu.%09lu [%u 0x%x tsc %llu]\n",
- g_quark_to_string(marker_get_info_from_id(ltt_tracefile_get_trace(tf),
+ fprintf(stderr, "Event %s %lu.%09lu [%u 0x%x tsc %" PRIu64 "]\n",
+ g_quark_to_string(marker_get_info_from_id(tf->mdata,
ltt_event_id(e))->name),
tfs->parent.timestamp.tv_sec, tfs->parent.timestamp.tv_nsec,
nb_block, offset, tsc);
FILE *fp;
- LttTrace *trace = ((LttvTracefileContext *)tfs)->t_context->t;
-
if(ts->nb_event == 0 &&
- marker_get_info_from_id(trace, e->event_id)->name
+ marker_get_info_from_id(tfs->parent.tf->mdata, e->event_id)->name
== QUARK_BLOCK_START) {
if(a_save_sample != NULL) {
filename = g_string_new("");
do {
LttTracefile *tf_pos;
//event_type = ltt_event_eventtype(event);
- minfo = marker_get_info_from_id(ltt_tracefile_get_trace(tracefile),
+ minfo = marker_get_info_from_id(tracefile->mdata,
ltt_event_id(event));
time = ltt_event_time(event);
ltt_event_position(event, a_event_position);
ltt_event_position_get(a_event_position, &tf_pos, &nb_block, &offset, &tsc);
//fprintf(fp,"%s.%s: %llu %lu.%09lu position %u/%u\n",
- fprintf(fp, "%s: %llu %lu.%09lu position %u/%u, tracefile %s\n",
+ fprintf(fp, "%s: %" PRIu64 " %lu.%09lu position %u/%u, tracefile %s\n",
g_quark_to_string(minfo->name),
tsc, (unsigned long)time.tv_sec,
(unsigned long)time.tv_nsec,