diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ftrace.h | 7 | ||||
-rw-r--r-- | include/linux/init_task.h | 1 | ||||
-rw-r--r-- | include/linux/sched.h | 4 |
3 files changed, 11 insertions, 1 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 97c83e1bc589..39b95c56587e 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -488,8 +488,15 @@ static inline int test_tsk_trace_graph(struct task_struct *tsk) | |||
488 | 488 | ||
489 | extern int ftrace_dump_on_oops; | 489 | extern int ftrace_dump_on_oops; |
490 | 490 | ||
491 | #ifdef CONFIG_PREEMPT | ||
492 | #define INIT_TRACE_RECURSION .trace_recursion = 0, | ||
493 | #endif | ||
494 | |||
491 | #endif /* CONFIG_TRACING */ | 495 | #endif /* CONFIG_TRACING */ |
492 | 496 | ||
497 | #ifndef INIT_TRACE_RECURSION | ||
498 | #define INIT_TRACE_RECURSION | ||
499 | #endif | ||
493 | 500 | ||
494 | #ifdef CONFIG_HW_BRANCH_TRACER | 501 | #ifdef CONFIG_HW_BRANCH_TRACER |
495 | 502 | ||
diff --git a/include/linux/init_task.h b/include/linux/init_task.h index dcfb93337e9a..6fc218529863 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h | |||
@@ -187,6 +187,7 @@ extern struct cred init_cred; | |||
187 | INIT_TRACE_IRQFLAGS \ | 187 | INIT_TRACE_IRQFLAGS \ |
188 | INIT_LOCKDEP \ | 188 | INIT_LOCKDEP \ |
189 | INIT_FTRACE_GRAPH \ | 189 | INIT_FTRACE_GRAPH \ |
190 | INIT_TRACE_RECURSION \ | ||
190 | } | 191 | } |
191 | 192 | ||
192 | 193 | ||
diff --git a/include/linux/sched.h b/include/linux/sched.h index b4c38bc8049c..7ede5e490913 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1428,7 +1428,9 @@ struct task_struct { | |||
1428 | #ifdef CONFIG_TRACING | 1428 | #ifdef CONFIG_TRACING |
1429 | /* state flags for use by tracers */ | 1429 | /* state flags for use by tracers */ |
1430 | unsigned long trace; | 1430 | unsigned long trace; |
1431 | #endif | 1431 | /* bitmask of trace recursion */ |
1432 | unsigned long trace_recursion; | ||
1433 | #endif /* CONFIG_TRACING */ | ||
1432 | }; | 1434 | }; |
1433 | 1435 | ||
1434 | /* Future-safe accessor for struct task_struct's cpus_allowed. */ | 1436 | /* Future-safe accessor for struct task_struct's cpus_allowed. */ |