tracing: Remove extra call to init_ftrace_syscalls()
authorSteven Rostedt (Red Hat) <[email protected]>
Wed, 14 Jan 2015 17:24:37 +0000 (12:24 -0500)
committerSteven Rostedt <[email protected]>
Thu, 15 Jan 2015 14:41:11 +0000 (09:41 -0500)
trace_init() calls init_ftrace_syscalls() and then calls trace_event_init()
which also calls init_ftrace_syscalls(). It makes more sense to only
call it from trace_event_init().

Calling it twice wastes memory, as it allocates the syscall events twice,
and loses the first copy of it.

Link: http://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Reported-by: Wang Nan <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
kernel/trace/trace.c

index 2e767972e99c2e8791236d10afa717b920543b70..4a9079b9f082fd3bb14e3b46522b1540b001fea1 100644 (file)
@@ -6918,7 +6918,6 @@ void __init trace_init(void)
                        tracepoint_printk = 0;
        }
        tracer_alloc_buffers();
-       init_ftrace_syscalls();
        trace_event_init();     
 }