X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Ftrace.h;h=448ea7975941c7c33dc8093bda8ef02c980e272c;hb=51b5991eead370ec64ad5336d1e6126ba6b2cc10;hp=ba66c33aa6669f54c6801035db25c543e9d8d959;hpb=2a74fbf4e7e641f94517b3e996c674291248bb1d;p=lttv.git diff --git a/ltt/branches/poly/ltt/trace.h b/ltt/branches/poly/ltt/trace.h index ba66c33a..448ea797 100644 --- a/ltt/branches/poly/ltt/trace.h +++ b/ltt/branches/poly/ltt/trace.h @@ -85,13 +85,15 @@ unsigned ltt_trace_control_tracefile_number(LttTrace *t); unsigned ltt_trace_per_cpu_tracefile_number(LttTrace *t); -/* It is possible to search for the tracefiles by name or by CPU position. - The index within the tracefiles of the same type is returned if found - and a negative value otherwise. */ +/* It is possible to search for the tracefiles by name or by CPU tracefile + * name. + * The index within the tracefiles of the same type is returned if found + * and a negative value otherwise. + */ -int ltt_trace_control_tracefile_find(LttTrace *t, char *name); +int ltt_trace_control_tracefile_find(LttTrace *t, const gchar *name); -int ltt_trace_per_cpu_tracefile_find(LttTrace *t, unsigned i); +int ltt_trace_per_cpu_tracefile_find(LttTrace *t, const gchar *name); /* Get a specific tracefile */ @@ -127,7 +129,7 @@ void ltt_tracefile_seek_position(LttTracefile *t, /* Read the next event */ -LttEvent *ltt_tracefile_read(LttTracefile *t); +LttEvent *ltt_tracefile_read(LttTracefile *t, LttEvent *event); /* open tracefile */ @@ -171,4 +173,10 @@ char * ltt_trace_system_description_description (LttSystemDescription * s); LttTime ltt_trace_system_description_trace_start_time(LttSystemDescription *s); +/* copy tracefile info over another. Used for sync. */ +LttTracefile *ltt_tracefile_new(); +void ltt_tracefile_destroy(LttTracefile *tf); +void ltt_tracefile_copy(LttTracefile *dest, const LttTracefile *src); + + #endif // TRACE_H