1 /* SPDX-License-Identifier: GPL-2.0 */
3 #ifndef _ASM_RISCV_STACKTRACE_H
4 #define _ASM_RISCV_STACKTRACE_H
6 #include <linux/sched.h>
7 #include <asm/ptrace.h>
14 extern void notrace walk_stackframe(struct task_struct *task, struct pt_regs *regs,
15 bool (*fn)(void *, unsigned long), void *arg);
16 extern void dump_backtrace(struct pt_regs *regs, struct task_struct *task,
19 #endif /* _ASM_RISCV_STACKTRACE_H */