1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (C) 2008-2018 Andes Technology Corporation */
4 #ifndef __ASM_STACKTRACE_H
5 #define __ASM_STACKTRACE_H
15 * struct frame_tail: User callchain
17 * This struct is used for call-stack walking,
18 * the order and types matters.
19 * Do not use array, it only stores sizeof(pointer)
21 * The details can refer to arch/arm/kernel/perf_event.c
24 unsigned long stack_fp;
25 unsigned long stack_lp;
28 /* For User callchain with optimize for size */
29 struct frame_tail_opt_size {
30 unsigned long stack_r6;
31 unsigned long stack_fp;
32 unsigned long stack_gp;
33 unsigned long stack_lp;
37 get_real_ret_addr(unsigned long *addr, struct task_struct *tsk, int *graph);
39 #endif /* __ASM_STACKTRACE_H */