X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Flttv%2Ftracecontext.c;h=f5b78b5cbfdd8d640fe6b91576b68d415c840010;hb=a970363f31999693ffbc0d7d6cf8a15d03677d64;hp=3a72ef8ca6e6413272e4f008a67c1185dcbe769a;hpb=e594b7fd8c889cf1d5943849e0d80adcd98c6663;p=lttv.git diff --git a/ltt/branches/poly/lttv/lttv/tracecontext.c b/ltt/branches/poly/lttv/lttv/tracecontext.c index 3a72ef8c..f5b78b5c 100644 --- a/ltt/branches/poly/lttv/lttv/tracecontext.c +++ b/ltt/branches/poly/lttv/lttv/tracecontext.c @@ -686,7 +686,7 @@ void lttv_process_traceset_begin(LttvTracesetContext *self, /* Note : a _middle must be preceded from a _seek or another middle */ guint lttv_process_traceset_middle(LttvTracesetContext *self, LttTime end, - guint nb_events, + gulong nb_events, const LttvTracesetContextPosition *end_position) { GTree *pqueue = self->pqueue; @@ -862,9 +862,6 @@ void lttv_process_trace_seek_time(LttvTraceContext *self, LttTime start) g_debug("test tree after seek_time"); g_tree_foreach(pqueue, test_tree, NULL); #endif //DEBUG - - - } @@ -968,13 +965,15 @@ struct marker_info *lttv_trace_hook_get_marker(LttTrace *t, LttvTraceHook *th) return marker_get_info_from_id(t, th->id); } - -int lttv_trace_find_hook(LttTrace *t, GQuark marker_name, +int lttv_trace_find_hook(LttTrace *t, GQuark facility_name, GQuark event_name, GQuark fields[], LttvHook h, gpointer hook_data, GArray **trace_hooks) { struct marker_info *info; guint16 marker_id; int init_array_size; + GQuark marker_name; + + marker_name = lttv_merge_facility_event_name(facility_name, event_name); info = marker_get_info_from_name(t, marker_name); if(unlikely(info == NULL)) { @@ -1039,7 +1038,8 @@ void lttv_trace_hook_remove_all(GArray **th) for(i=0; i<(*th)->len; i++) { g_ptr_array_free(g_array_index(*th, LttvTraceHook, i).fields, TRUE); } - *th = g_array_remove_range(*th, 0, (*th)->len); + if((*th)->len) + *th = g_array_remove_range(*th, 0, (*th)->len); } LttvTracesetContextPosition *lttv_traceset_context_position_new(