Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _LINUX_UNWIND_USER_H
3#define _LINUX_UNWIND_USER_H
4
5#include <linux/unwind_user_types.h>
6#include <asm/unwind_user.h>
7
8#ifndef CONFIG_HAVE_UNWIND_USER_FP
9
10#define ARCH_INIT_USER_FP_FRAME(ws)
11
12#endif
13
14#ifndef ARCH_INIT_USER_FP_ENTRY_FRAME
15#define ARCH_INIT_USER_FP_ENTRY_FRAME(ws)
16#endif
17
18#ifndef unwind_user_at_function_start
19static inline bool unwind_user_at_function_start(struct pt_regs *regs)
20{
21 return false;
22}
23#define unwind_user_at_function_start unwind_user_at_function_start
24#endif
25
26int unwind_user(struct unwind_stacktrace *trace, unsigned int max_entries);
27
28#endif /* _LINUX_UNWIND_USER_H */