X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Finclude%2Fltt%2Ftrace.h;h=aa5cb6ba0d525c9bf5de0305e2a7a082f21aa60c;hb=f7afe191fd58f0bf4bab9c9514c261535b99d32b;hp=e96e73e4573c072bedecf16e5eacbd734d1a2703;hpb=963b5f2df23dc1c70bdc70d4aecb76f50651997b;p=lttv.git diff --git a/ltt/branches/poly/include/ltt/trace.h b/ltt/branches/poly/include/ltt/trace.h index e96e73e4..aa5cb6ba 100644 --- a/ltt/branches/poly/include/ltt/trace.h +++ b/ltt/branches/poly/include/ltt/trace.h @@ -10,7 +10,10 @@ When a trace is closed, all the associated facilities, types and fields are released as well. */ -LttTrace *ltt_trace_open(char *pathname); +LttTrace *ltt_trace_open(const char *pathname); + +/* copy reopens a trace */ +LttTrace *ltt_trace_copy(LttTrace *self); void ltt_trace_close(LttTrace *t); @@ -94,15 +97,29 @@ LttTracefile *ltt_trace_control_tracefile_get(LttTrace *t, unsigned i); LttTracefile *ltt_trace_per_cpu_tracefile_get(LttTrace *t, unsigned i); +/* Get the start time and end time of the trace */ + +void ltt_trace_time_span_get(LttTrace *t, LttTime *start, LttTime *end); + + /* Get the name of a tracefile */ char *ltt_tracefile_name(LttTracefile *tf); +/* Get the number of blocks in the tracefile */ + +unsigned ltt_tracefile_block_number(LttTracefile *tf); + + /* Seek to the first event of the trace with time larger or equal to time */ void ltt_tracefile_seek_time(LttTracefile *t, LttTime time); +/* Seek to the first event with position equal or larger to ep */ + +void ltt_tracefile_seek_position(LttTracefile *t, + LttEventPosition *ep); /* Read the next event */