ARM64 need to modify the stacktrace_cookie->skip. Signed-off-by: Chen Jun <chenjun...@huawei.com> --- include/linux/stacktrace.h | 7 +++++++ kernel/stacktrace.c | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/include/linux/stacktrace.h b/include/linux/stacktrace.h index 50e2df3..238b276 100644 --- a/include/linux/stacktrace.h +++ b/include/linux/stacktrace.h @@ -25,6 +25,13 @@ unsigned int stack_trace_save_user(unsigned long *store, unsigned int size); /* Internal interfaces. Do not use in generic code */ #ifdef CONFIG_ARCH_STACKWALK +struct stacktrace_cookie { + unsigned long *store; + unsigned int size; + unsigned int skip; + unsigned int len; +}; + /** * stack_trace_consume_fn - Callback for arch_stack_walk() * @cookie: Caller supplied pointer handed back by arch_stack_walk() diff --git a/kernel/stacktrace.c b/kernel/stacktrace.c index 9f8117c..b072e8f 100644 --- a/kernel/stacktrace.c +++ b/kernel/stacktrace.c @@ -71,13 +71,6 @@ EXPORT_SYMBOL_GPL(stack_trace_snprint); #ifdef CONFIG_ARCH_STACKWALK -struct stacktrace_cookie { - unsigned long *store; - unsigned int size; - unsigned int skip; - unsigned int len; -}; - static bool stack_trace_consume_entry(void *cookie, unsigned long addr) { struct stacktrace_cookie *c = cookie; -- 2.9.4