diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2014-02-07 20:58:39 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-02-22 18:08:08 +0100 |
commit | 8f47b1871b8aac98f1a9d93bc3467fb97b65199a (patch) | |
tree | 0eebff7b82d2cfa93a728a363d0bd4019356d9cf /include/linux/sched.h | |
parent | db273be2a7d42f92b3471e0f717982928214a650 (diff) | |
download | linux-stable-8f47b1871b8aac98f1a9d93bc3467fb97b65199a.tar.gz linux-stable-8f47b1871b8aac98f1a9d93bc3467fb97b65199a.tar.bz2 linux-stable-8f47b1871b8aac98f1a9d93bc3467fb97b65199a.zip |
sched: Add better debug output for might_sleep()
might_sleep() can tell us where interrupts have been disabled, but we
have no idea what disabled preemption. Add some debug infrastructure.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1391803122-4425-4-git-send-email-bigeasy@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index c49a2585ff7d..825ed838d4b9 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1463,6 +1463,9 @@ struct task_struct { struct mutex perf_event_mutex; struct list_head perf_event_list; #endif +#ifdef CONFIG_DEBUG_PREEMPT + unsigned long preempt_disable_ip; +#endif #ifdef CONFIG_NUMA struct mempolicy *mempolicy; /* Protected by alloc_lock */ short il_next; |