tracing/kprobes: Turn trace_probe->files into list_head
authorOleg Nesterov <oleg@redhat.com>
Thu, 20 Jun 2013 17:38:14 +0000 (19:38 +0200)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 2 Jul 2013 00:34:27 +0000 (20:34 -0400)
commitb04d52e368e2cf526abb2bab61f304eaea126af2
treeb133eb6dcc68e0b4e39c477aeddad326c0797959
parent3baa5e4cf224b8a55220cc841bb475e164b84ceb
tracing/kprobes: Turn trace_probe->files into list_head

I think that "ftrace_event_file *trace_probe[]" complicates the
code for no reason, turn it into list_head to simplify the code.
enable_trace_probe() no longer needs synchronize_sched().

This needs the extra sizeof(list_head) memory for every attached
ftrace_event_file, hopefully not a problem in this case.

Link: http://lkml.kernel.org/r/20130620173814.GA13165@redhat.com
Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_kprobe.c