diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2012-10-05 08:56:15 +0100 |
---|---|---|
committer | Steven Rostedt <rostedt@rostedt.homelinux.com> | 2013-09-13 12:33:11 -0400 |
commit | bf5d93bb828fb945725a64714bafa1dadfa0a912 (patch) | |
tree | 83be5d78a29cfcda681ff4b9f9e1acd9aaa9d834 /include | |
parent | b43d71a7d84fd5c42fe111b14f8d8fd85b133768 (diff) |
sched: 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.
Cc: stable-rt@vger.kernel.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sched.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index fa2464313acb..e9854c590fe8 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1612,6 +1612,10 @@ struct task_struct { int kmap_idx; pte_t kmap_pte[KM_TYPE_NR]; #endif + +#ifdef CONFIG_DEBUG_PREEMPT + unsigned long preempt_disable_ip; +#endif }; #ifdef CONFIG_PREEMPT_RT_FULL |