X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Ftrace.h;h=9981f1f0772f084854a6dec4d8ede3e1ed4e82af;hb=4d9ff9421ad51cef878f7a2e70faacf96001768e;hp=05ed31eb508bad3863b8cac1cddad9f348d906c4;hpb=18206708bafbba3198bfb82cca97f17d70a05666;p=lttv.git diff --git a/ltt/branches/poly/ltt/trace.h b/ltt/branches/poly/ltt/trace.h index 05ed31eb..9981f1f0 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 */ @@ -138,18 +140,13 @@ void ltt_tracefile_open_cpu(LttTrace *t, char * tracefile_name); gint ltt_tracefile_open_control(LttTrace *t, char * control_name); -/* obtain the time of an event */ - -LttTime getEventTime(LttTracefile * tf); - - /* get the data type size and endian type of the local machine */ void getDataEndianType(LttArchSize * size, LttArchEndian * endian); /* get an integer number */ -int getIntNumber(int size1, void *evD); +gint64 getIntNumber(gboolean reverse_byte_order, int size1, void *evD); /* get the node name of the system */ @@ -176,5 +173,6 @@ LttTracefile *ltt_tracefile_new(); void ltt_tracefile_destroy(LttTracefile *tf); void ltt_tracefile_copy(LttTracefile *dest, const LttTracefile *src); +void get_absolute_pathname(const char *pathname, char * abs_pathname); #endif // TRACE_H