]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ftrace: add necessary locking for ftrace records
authorSteven Rostedt <rostedt@goodmis.org>
Sat, 16 Aug 2008 01:40:05 +0000 (21:40 -0400)
committerIngo Molnar <mingo@elte.hu>
Tue, 14 Oct 2008 08:35:47 +0000 (10:35 +0200)
commit99ecdc43bc17faf5fa571db8569df171ecd0e5b8
treeaedefb2859247aefe7538e479ab71bcd3a1717c8
parent00fd61aee10533e003f2f00ab7163207660a4051
ftrace: add necessary locking for ftrace records

The new design of pre-recorded mcounts and updating the code outside of
kstop_machine has changed the way the records themselves are protected.

This patch uses the ftrace_lock to protect the records. Note, the lock
still does not need to be taken within calls that are only called via
kstop_machine, since the that code can not run while the spin lock is held.

Also removed the hash_lock needed for the daemon when MCOUNT_RECORD is
configured. Also did a slight cleanup of an unused variable.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/ftrace.c