aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-05-12 15:20:46 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 14:42:12 -0400
commitd4c5a2f5870939d837293de87b41dda0012a4572 (patch)
tree46512c24ff245052e60b6d2156cd9992d272ff11 /kernel/trace/trace.h
parentb3806b4316306dc9c542eff6c23d7d42918f3504 (diff)
ftrace: fix locking
we can hold all cpu trace buffer locks at once - put each into a separate lock class. 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index 29a7ea59de50..b0408356f0e0 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -56,6 +56,7 @@ struct trace_array_cpu {
56 struct list_head trace_pages; 56 struct list_head trace_pages;
57 atomic_t disabled; 57 atomic_t disabled;
58 spinlock_t lock; 58 spinlock_t lock;
59 struct lock_class_key lock_key;
59 cycle_t time_offset; 60 cycle_t time_offset;
60 61
61 /* these fields get copied into max-trace: */ 62 /* these fields get copied into max-trace: */