From: pmf Date: Tue, 31 Jul 2007 19:46:14 +0000 (+0000) Subject: really call before_bdev_event_hook _before_ the event X-Git-Tag: v0.12.20~920 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fbe038b6e01a8a3e50f2348afb6f2e1424c27312;p=lttv.git really call before_bdev_event_hook _before_ the event git-svn-id: http://ltt.polymtl.ca/svn@2569 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/modules/gui/resourceview/drawing.c b/ltt/branches/poly/lttv/modules/gui/resourceview/drawing.c index bc8b0c80..83311b5e 100644 --- a/ltt/branches/poly/lttv/modules/gui/resourceview/drawing.c +++ b/ltt/branches/poly/lttv/modules/gui/resourceview/drawing.c @@ -331,6 +331,22 @@ void drawing_data_request(Drawing_t *drawing, // &g_array_index(hooks, LttvTraceHook, before_hn++)); // if(ret) before_hn--; + ret = lttv_trace_find_hook(ts->parent.t, + LTT_FACILITY_BLOCK, LTT_EVENT_REQUEST_ISSUE, + LTT_FIELD_MAJOR, LTT_FIELD_MINOR, LTT_FIELD_OPERATION, + before_bdev_event_hook, + events_request, + &g_array_index(hooks, LttvTraceHook, before_hn++)); + if(ret) before_hn--; + + ret = lttv_trace_find_hook(ts->parent.t, + LTT_FACILITY_BLOCK, LTT_EVENT_REQUEST_COMPLETE, + LTT_FIELD_MAJOR, LTT_FIELD_MINOR, LTT_FIELD_OPERATION, + before_bdev_event_hook, + events_request, + &g_array_index(hooks, LttvTraceHook, before_hn++)); + if(ret) before_hn--; + #if 0 lttv_trace_find_hook(ts->parent.t, "core", "process", "event_sub_id", @@ -430,22 +446,6 @@ void drawing_data_request(Drawing_t *drawing, // &g_array_index(hooks, LttvTraceHook, after_hn++)); // if(ret) after_hn--; - ret = lttv_trace_find_hook(ts->parent.t, - LTT_FACILITY_BLOCK, LTT_EVENT_REQUEST_ISSUE, - LTT_FIELD_MAJOR, LTT_FIELD_MINOR, LTT_FIELD_OPERATION, - before_bdev_event_hook, - events_request, - &g_array_index(hooks, LttvTraceHook, after_hn++)); - if(ret) after_hn--; - - ret = lttv_trace_find_hook(ts->parent.t, - LTT_FACILITY_BLOCK, LTT_EVENT_REQUEST_COMPLETE, - LTT_FIELD_MAJOR, LTT_FIELD_MINOR, LTT_FIELD_OPERATION, - before_bdev_event_hook, - events_request, - &g_array_index(hooks, LttvTraceHook, after_hn++)); - if(ret) after_hn--; - hooks = g_array_set_size(hooks, after_hn); #if 0