X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Fevent.c;h=8b22b472d7fed928ee669a06475d0d195adbfc14;hb=69bd59ed20497e8453727155aa54c9b515e1c3ab;hp=52344487c8a48403c0d369fa6a01b41bcbf5c912;hpb=eed2ef37f908daf7b3f884b5d8f91dad03f10526;p=lttv.git diff --git a/ltt/branches/poly/ltt/event.c b/ltt/branches/poly/ltt/event.c index 52344487..8b22b472 100644 --- a/ltt/branches/poly/ltt/event.c +++ b/ltt/branches/poly/ltt/event.c @@ -204,8 +204,12 @@ unsigned ltt_event_eventtype_id(const LttEvent *e) LttFacility *ltt_event_facility(const LttEvent *e) { LttTrace * trace = e->tracefile->trace; - unsigned id = e->event_id; - return ltt_trace_facility_by_id(trace,id); + unsigned id = e->facility_id; + LttFacility *facility = ltt_trace_facility_by_id(trace,id); + + g_assert(facility->exists); + + return facility; } /***************************************************************************** @@ -391,6 +395,12 @@ void ltt_event_position_copy(LttEventPosition *dest, } + +LttTracefile *ltt_event_position_tracefile(LttEventPosition *ep) +{ + return ep->tracefile; +} + /***************************************************************************** *Function name * ltt_event_cpu_i: get the cpu id where the event happens