diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-02-04 17:16:39 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-05 08:35:46 -0500 |
commit | 268ccda0cb4d1292029d07ee3dbd07117baf6ecb (patch) | |
tree | 7683e02758d3f768ad21414abf39b00773e87940 /block/blktrace.c | |
parent | 43769f10b4826376cbf4ce17af74a5b4e8dc4fcd (diff) |
trace: assign defaults at register_ftrace_event
Impact: simplification of tracers
As all tracers are doing this we might as well do it in
register_ftrace_event and save one branch each time we call these
callbacks.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'block/blktrace.c')
-rw-r--r-- | block/blktrace.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/block/blktrace.c b/block/blktrace.c index c7698d1617a1..1ebd068061ec 100644 --- a/block/blktrace.c +++ b/block/blktrace.c | |||
@@ -1243,8 +1243,6 @@ static struct trace_event trace_blk_event = { | |||
1243 | .type = TRACE_BLK, | 1243 | .type = TRACE_BLK, |
1244 | .trace = blk_trace_event_print, | 1244 | .trace = blk_trace_event_print, |
1245 | .latency_trace = blk_trace_event_print, | 1245 | .latency_trace = blk_trace_event_print, |
1246 | .raw = trace_nop_print, | ||
1247 | .hex = trace_nop_print, | ||
1248 | .binary = blk_trace_event_print_binary, | 1246 | .binary = blk_trace_event_print_binary, |
1249 | }; | 1247 | }; |
1250 | 1248 | ||