staging: rtl8192u: remove redundant assignment to pointer crypt
[linux/fpc-iii.git] / arch / arm64 / include / asm / ftrace.h
blob5ab5200b2bdc8efe97b43ee9bf796b18c8cca800
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * arch/arm64/include/asm/ftrace.h
5 * Copyright (C) 2013 Linaro Limited
6 * Author: AKASHI Takahiro <takahiro.akashi@linaro.org>
7 */
8 #ifndef __ASM_FTRACE_H
9 #define __ASM_FTRACE_H
11 #include <asm/insn.h>
13 #define HAVE_FUNCTION_GRAPH_FP_TEST
14 #define MCOUNT_ADDR ((unsigned long)_mcount)
15 #define MCOUNT_INSN_SIZE AARCH64_INSN_SIZE
17 #ifndef __ASSEMBLY__
18 #include <linux/compat.h>
20 extern void _mcount(unsigned long);
21 extern void *return_address(unsigned int);
23 struct dyn_arch_ftrace {
24 /* No extra data needed for arm64 */
27 extern unsigned long ftrace_graph_call;
29 extern void return_to_handler(void);
31 static inline unsigned long ftrace_call_adjust(unsigned long addr)
34 * addr is the address of the mcount call instruction.
35 * recordmcount does the necessary offset calculation.
37 return addr;
40 #define ftrace_return_address(n) return_address(n)
43 * Because AArch32 mode does not share the same syscall table with AArch64,
44 * tracing compat syscalls may result in reporting bogus syscalls or even
45 * hang-up, so just do not trace them.
46 * See kernel/trace/trace_syscalls.c
48 * x86 code says:
49 * If the user really wants these, then they should use the
50 * raw syscall tracepoints with filtering.
52 #define ARCH_TRACE_IGNORE_COMPAT_SYSCALLS
53 static inline bool arch_trace_is_compat_syscall(struct pt_regs *regs)
55 return is_compat_task();
58 #define ARCH_HAS_SYSCALL_MATCH_SYM_NAME
60 static inline bool arch_syscall_match_sym_name(const char *sym,
61 const char *name)
64 * Since all syscall functions have __arm64_ prefix, we must skip it.
65 * However, as we described above, we decided to ignore compat
66 * syscalls, so we don't care about __arm64_compat_ prefix here.
68 return !strcmp(sym + 8, name);
70 #endif /* ifndef __ASSEMBLY__ */
72 #endif /* __ASM_FTRACE_H */