xref: /linux/arch/riscv/include/asm/stacktrace.h (revision 26fbb4c8c7c3ee9a4c3b4de555a8587b5a19154e)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #ifndef _ASM_RISCV_STACKTRACE_H
4 #define _ASM_RISCV_STACKTRACE_H
5 
6 #include <linux/sched.h>
7 #include <asm/ptrace.h>
8 
9 struct stackframe {
10 	unsigned long fp;
11 	unsigned long ra;
12 };
13 
14 extern void notrace walk_stackframe(struct task_struct *task, struct pt_regs *regs,
15 				    bool (*fn)(void *, unsigned long), void *arg);
16 
17 #endif /* _ASM_RISCV_STACKTRACE_H */
18