X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Finclude%2Fltt%2Ftrace.h;h=aa5cb6ba0d525c9bf5de0305e2a7a082f21aa60c;hb=f7afe191fd58f0bf4bab9c9514c261535b99d32b;hp=ac3335a1927108c21ecf195dd12ea42e5d86bf8b;hpb=80da81adfa88158bd3d4c26f89f96f8b58c77b4f;p=lttv.git diff --git a/ltt/branches/poly/include/ltt/trace.h b/ltt/branches/poly/include/ltt/trace.h index ac3335a1..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,6 +97,11 @@ 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);