diff options
Diffstat (limited to 'arch/x86/kernel/stacktrace.c')
-rw-r--r-- | arch/x86/kernel/stacktrace.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/x86/kernel/stacktrace.c b/arch/x86/kernel/stacktrace.c index 8c4e4f5bf040..4f4021b5bfb5 100644 --- a/arch/x86/kernel/stacktrace.c +++ b/arch/x86/kernel/stacktrace.c | |||
@@ -33,7 +33,8 @@ static void save_stack_address(void *data, unsigned long addr, int reliable) | |||
33 | trace->entries[trace->nr_entries++] = addr; | 33 | trace->entries[trace->nr_entries++] = addr; |
34 | } | 34 | } |
35 | 35 | ||
36 | static void save_stack_address_nosched(void *data, unsigned long addr) | 36 | static void |
37 | save_stack_address_nosched(void *data, unsigned long addr, int reliable) | ||
37 | { | 38 | { |
38 | struct stack_trace *trace = (struct stack_trace *)data; | 39 | struct stack_trace *trace = (struct stack_trace *)data; |
39 | if (in_sched_functions(addr)) | 40 | if (in_sched_functions(addr)) |
@@ -65,14 +66,14 @@ static const struct stacktrace_ops save_stack_ops_nosched = { | |||
65 | */ | 66 | */ |
66 | void save_stack_trace(struct stack_trace *trace) | 67 | void save_stack_trace(struct stack_trace *trace) |
67 | { | 68 | { |
68 | dump_trace(current, NULL, NULL, &save_stack_ops, trace); | 69 | dump_trace(current, NULL, NULL, 0, &save_stack_ops, trace); |
69 | if (trace->nr_entries < trace->max_entries) | 70 | if (trace->nr_entries < trace->max_entries) |
70 | trace->entries[trace->nr_entries++] = ULONG_MAX; | 71 | trace->entries[trace->nr_entries++] = ULONG_MAX; |
71 | } | 72 | } |
72 | 73 | ||
73 | void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) | 74 | void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) |
74 | { | 75 | { |
75 | dump_trace(tsk, NULL, NULL, &save_stack_ops_nosched, trace); | 76 | dump_trace(tsk, NULL, NULL, 0, &save_stack_ops_nosched, trace); |
76 | if (trace->nr_entries < trace->max_entries) | 77 | if (trace->nr_entries < trace->max_entries) |
77 | trace->entries[trace->nr_entries++] = ULONG_MAX; | 78 | trace->entries[trace->nr_entries++] = ULONG_MAX; |
78 | } | 79 | } |