This source file includes following definitions.
- ftrace_call_adjust
 
- arch_syscall_match_sym_name
 
- arch_trace_is_compat_syscall
 
   1 
   2 #ifndef _ASM_X86_FTRACE_H
   3 #define _ASM_X86_FTRACE_H
   4 
   5 #ifdef CONFIG_FUNCTION_TRACER
   6 #ifndef CC_USING_FENTRY
   7 # error Compiler does not support fentry?
   8 #endif
   9 # define MCOUNT_ADDR            ((unsigned long)(__fentry__))
  10 #define MCOUNT_INSN_SIZE        5 
  11 
  12 #ifdef CONFIG_DYNAMIC_FTRACE
  13 #define ARCH_SUPPORTS_FTRACE_OPS 1
  14 #endif
  15 
  16 #define HAVE_FUNCTION_GRAPH_RET_ADDR_PTR
  17 
  18 #ifndef __ASSEMBLY__
  19 extern atomic_t modifying_ftrace_code;
  20 extern void __fentry__(void);
  21 
  22 static inline unsigned long ftrace_call_adjust(unsigned long addr)
  23 {
  24         
  25 
  26 
  27 
  28         return addr;
  29 }
  30 
  31 #ifdef CONFIG_DYNAMIC_FTRACE
  32 
  33 struct dyn_arch_ftrace {
  34         
  35 };
  36 
  37 int ftrace_int3_handler(struct pt_regs *regs);
  38 
  39 #define FTRACE_GRAPH_TRAMP_ADDR FTRACE_GRAPH_ADDR
  40 
  41 #endif 
  42 #endif 
  43 #endif 
  44 
  45 
  46 #ifndef __ASSEMBLY__
  47 
  48 #define ARCH_HAS_SYSCALL_MATCH_SYM_NAME
  49 static inline bool arch_syscall_match_sym_name(const char *sym, const char *name)
  50 {
  51         
  52 
  53 
  54 
  55         return !strcmp(sym + 3, name + 3) ||
  56                 (!strncmp(sym, "__x64_", 6) && !strcmp(sym + 9, name + 3)) ||
  57                 (!strncmp(sym, "__ia32_", 7) && !strcmp(sym + 10, name + 3));
  58 }
  59 
  60 #ifndef COMPILE_OFFSETS
  61 
  62 #if defined(CONFIG_FTRACE_SYSCALLS) && defined(CONFIG_IA32_EMULATION)
  63 #include <linux/compat.h>
  64 
  65 
  66 
  67 
  68 
  69 
  70 
  71 
  72 
  73 #define ARCH_TRACE_IGNORE_COMPAT_SYSCALLS 1
  74 static inline bool arch_trace_is_compat_syscall(struct pt_regs *regs)
  75 {
  76         return in_32bit_syscall();
  77 }
  78 #endif 
  79 #endif 
  80 #endif 
  81 
  82 #endif