diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2008-05-12 15:20:55 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 15:14:11 -0400 |
commit | 92205c2343527a863d660360599a4bf8cede77b0 (patch) | |
tree | c85cf8495cd2eb52a99062e3505cd81851cd3444 /kernel/trace/trace.h | |
parent | c5f888cae49dfe3e86d9d1e0dab2b63ceb057be3 (diff) |
ftrace: user raw_spin_lock in tracing
Lock debugging enabled cause huge performance problems for tracing. Having
the lock verification happening for every function that is called
because mcount calls spin_lock can cripple the system.
This patch converts the spin_locks used by ftrace into raw_spin_locks.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 98cbfd05d754..25cba28eb9ba 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -76,7 +76,7 @@ struct trace_entry { | |||
76 | struct trace_array_cpu { | 76 | struct trace_array_cpu { |
77 | struct list_head trace_pages; | 77 | struct list_head trace_pages; |
78 | atomic_t disabled; | 78 | atomic_t disabled; |
79 | spinlock_t lock; | 79 | raw_spinlock_t lock; |
80 | struct lock_class_key lock_key; | 80 | struct lock_class_key lock_key; |
81 | 81 | ||
82 | /* these fields get copied into max-trace: */ | 82 | /* these fields get copied into max-trace: */ |