aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/stacktrace.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/x86/kernel/stacktrace.c b/arch/x86/kernel/stacktrace.c
index ea54d029fe27..abc321d55870 100644
--- a/arch/x86/kernel/stacktrace.c
+++ b/arch/x86/kernel/stacktrace.c
@@ -26,8 +26,10 @@ static int save_stack_stack(void *data, char *name)
26static void save_stack_address(void *data, unsigned long addr, int reliable) 26static void save_stack_address(void *data, unsigned long addr, int reliable)
27{ 27{
28 struct stack_trace *trace = data; 28 struct stack_trace *trace = data;
29#ifdef CONFIG_FRAME_POINTER
29 if (!reliable) 30 if (!reliable)
30 return; 31 return;
32#endif
31 if (trace->skip > 0) { 33 if (trace->skip > 0) {
32 trace->skip--; 34 trace->skip--;
33 return; 35 return;
@@ -39,9 +41,11 @@ static void save_stack_address(void *data, unsigned long addr, int reliable)
39static void 41static void
40save_stack_address_nosched(void *data, unsigned long addr, int reliable) 42save_stack_address_nosched(void *data, unsigned long addr, int reliable)
41{ 43{
42 struct stack_trace *trace = (struct stack_trace *)data; 44 struct stack_trace *trace = data;
45#ifdef CONFIG_FRAME_POINTER
43 if (!reliable) 46 if (!reliable)
44 return; 47 return;
48#endif
45 if (in_sched_functions(addr)) 49 if (in_sched_functions(addr))
46 return; 50 return;
47 if (trace->skip > 0) { 51 if (trace->skip > 0) {