ftrace.h (874bfc6e5422d2421f7e4d5ea318d30e91679dfe) | ftrace.h (5c176aff5b5a7027840c37da9d48a8f9cedb08b9) |
---|---|
1/* 2 * arch/arm64/include/asm/ftrace.h 3 * 4 * Copyright (C) 2013 Linaro Limited 5 * Author: AKASHI Takahiro <takahiro.akashi@linaro.org> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as 9 * published by the Free Software Foundation. 10 */ 11#ifndef __ASM_FTRACE_H 12#define __ASM_FTRACE_H 13 14#include <asm/insn.h> 15 | 1/* 2 * arch/arm64/include/asm/ftrace.h 3 * 4 * Copyright (C) 2013 Linaro Limited 5 * Author: AKASHI Takahiro <takahiro.akashi@linaro.org> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as 9 * published by the Free Software Foundation. 10 */ 11#ifndef __ASM_FTRACE_H 12#define __ASM_FTRACE_H 13 14#include <asm/insn.h> 15 |
16#define HAVE_FUNCTION_GRAPH_FP_TEST |
|
16#define MCOUNT_ADDR ((unsigned long)_mcount) 17#define MCOUNT_INSN_SIZE AARCH64_INSN_SIZE 18 19#ifndef __ASSEMBLY__ 20#include <linux/compat.h> 21 22extern void _mcount(unsigned long); 23extern void *return_address(unsigned int); --- 27 unchanged lines hidden (view full) --- 51 * If the user really wants these, then they should use the 52 * raw syscall tracepoints with filtering. 53 */ 54#define ARCH_TRACE_IGNORE_COMPAT_SYSCALLS 55static inline bool arch_trace_is_compat_syscall(struct pt_regs *regs) 56{ 57 return is_compat_task(); 58} | 17#define MCOUNT_ADDR ((unsigned long)_mcount) 18#define MCOUNT_INSN_SIZE AARCH64_INSN_SIZE 19 20#ifndef __ASSEMBLY__ 21#include <linux/compat.h> 22 23extern void _mcount(unsigned long); 24extern void *return_address(unsigned int); --- 27 unchanged lines hidden (view full) --- 52 * If the user really wants these, then they should use the 53 * raw syscall tracepoints with filtering. 54 */ 55#define ARCH_TRACE_IGNORE_COMPAT_SYSCALLS 56static inline bool arch_trace_is_compat_syscall(struct pt_regs *regs) 57{ 58 return is_compat_task(); 59} |
59 60#define ARCH_HAS_SYSCALL_MATCH_SYM_NAME 61 62static inline bool arch_syscall_match_sym_name(const char *sym, 63 const char *name) 64{ 65 /* 66 * Since all syscall functions have __arm64_ prefix, we must skip it. 67 * However, as we described above, we decided to ignore compat 68 * syscalls, so we don't care about __arm64_compat_ prefix here. 69 */ 70 return !strcmp(sym + 8, name); 71} | |
72#endif /* ifndef __ASSEMBLY__ */ 73 74#endif /* __ASM_FTRACE_H */ | 60#endif /* ifndef __ASSEMBLY__ */ 61 62#endif /* __ASM_FTRACE_H */ |