https://github.com/torvalds/linux
Revision 83829b74f54186a154ae6b586c05cdb838c2ebc6 authored by Steven Rostedt (Red Hat) on 14 January 2015, 17:24:37 UTC, committed by Steven Rostedt on 15 January 2015, 14:41:11 UTC
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/54AF53BD.5070303@huawei.com
Link: http://lkml.kernel.org/r/20150115040505.930398632@goodmis.org

Reported-by: Wang Nan <wangnan0@huawei.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
1 parent 237d28d
History
Tip revision: 83829b74f54186a154ae6b586c05cdb838c2ebc6 authored by Steven Rostedt (Red Hat) on 14 January 2015, 17:24:37 UTC
tracing: Remove extra call to init_ftrace_syscalls()
Tip revision: 83829b7
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.7 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 94.0 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 291.6 KB
Makefile -rw-r--r-- 53.0 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top