diff options
| author | Ingo Molnar <mingo@elte.hu> | 2009-01-22 10:26:30 +0100 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-01-22 10:26:30 +0100 |
| commit | 03b30d151a918364c1c7d08bcb3e167be0a3746f (patch) | |
| tree | 0c728e624889c4fb32e028786c5db91bbdb5def1 /arch/x86/kernel/dumpstack.c | |
| parent | b43f70933e7753a284733d5ae355f6778bd118ce (diff) | |
| parent | 3690b5e6fd9daa030039ae9bda69044228bd476d (diff) | |
Merge branch 'tracing/ftrace' into tracing/core
Diffstat (limited to 'arch/x86/kernel/dumpstack.c')
| -rw-r--r-- | arch/x86/kernel/dumpstack.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kernel/dumpstack.c b/arch/x86/kernel/dumpstack.c index 6b1f6f6f8661..077c9ea655fc 100644 --- a/arch/x86/kernel/dumpstack.c +++ b/arch/x86/kernel/dumpstack.c @@ -14,6 +14,7 @@ #include <linux/bug.h> #include <linux/nmi.h> #include <linux/sysfs.h> +#include <linux/ftrace.h> #include <asm/stacktrace.h> @@ -195,6 +196,11 @@ unsigned __kprobes long oops_begin(void) int cpu; unsigned long flags; + /* notify the hw-branch tracer so it may disable tracing and + add the last trace to the trace buffer - + the earlier this happens, the more useful the trace. */ + trace_hw_branch_oops(); + oops_enter(); /* racy, but better than risking deadlock. */ |
