X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=lttv%2Flttv%2Ftraceset.h;h=4f326fd8286adace26304ee19a80aae7ffda6e4e;hb=8284135eaaf40b6d7897c63a59a7df0b7f0cd2c7;hp=5d57ca44ef1f7e8aa56917a37e9adc72c684de5d;hpb=0fa52e61230105af7ad9382e859d03203a09b500;p=lttv.git diff --git a/lttv/lttv/traceset.h b/lttv/lttv/traceset.h index 5d57ca44..4f326fd8 100644 --- a/lttv/lttv/traceset.h +++ b/lttv/lttv/traceset.h @@ -45,8 +45,11 @@ struct _LttvTraceset { GPtrArray *state_trace_handle_index; gboolean has_precomputed_states; TimeInterval time_span; + char *common_path; }; +#define TRACE_NAME_SIZE 100 + struct _LttvTrace { // Trace id for babeltrace LttvTraceset *traceset; /* container traceset */ @@ -54,6 +57,8 @@ struct _LttvTrace { LttvAttribute *a; guint ref_count; LttvTraceState *state; + char short_name[TRACE_NAME_SIZE]; + char *full_path; }; /* In babeltrace, the position concept is an iterator. */ @@ -111,6 +116,10 @@ LttvTrace *lttv_traceset_get(LttvTraceset *s, unsigned i); void lttv_traceset_remove(LttvTraceset *s, unsigned i); +int lttv_traceset_get_trace_index_from_event(LttvEvent *event); + +int lttv_traceset_get_trace_index_from_handle_id(LttvTraceset *ts, int handle_id); + /* An attributes table is attached to the set and to each trace in the set. */ LttvAttribute *lttv_traceset_attribute(LttvTraceset *s);