From: Thomas Gleixner Date: Wed, 2 May 2018 14:11:12 +0000 (+0200) Subject: Merge branch 'timers/urgent' into timers/core X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=604a98f1df2897f9ea6ca6bdab8e1c2d6844be01;p=linux.git Merge branch 'timers/urgent' into timers/core Pick up urgent fixes to apply dependent cleanup patch --- 604a98f1df2897f9ea6ca6bdab8e1c2d6844be01 diff --cc arch/x86/include/asm/ftrace.h index db25aa15b7055,cc8f8fcf9b4aa..c18ed65287d5e --- a/arch/x86/include/asm/ftrace.h +++ b/arch/x86/include/asm/ftrace.h @@@ -46,10 -46,24 +46,24 @@@ int ftrace_int3_handler(struct pt_regs #endif /* CONFIG_FUNCTION_TRACER */ - #if !defined(__ASSEMBLY__) && !defined(COMPILE_OFFSETS) + #ifndef __ASSEMBLY__ + + #define ARCH_HAS_SYSCALL_MATCH_SYM_NAME + static inline bool arch_syscall_match_sym_name(const char *sym, const char *name) + { + /* + * Compare the symbol name with the system call name. Skip the + * "__x64_sys", "__ia32_sys" or simple "sys" prefix. + */ + return !strcmp(sym + 3, name + 3) || + (!strncmp(sym, "__x64_", 6) && !strcmp(sym + 9, name + 3)) || + (!strncmp(sym, "__ia32_", 7) && !strcmp(sym + 10, name + 3)); + } + + #ifndef COMPILE_OFFSETS #if defined(CONFIG_FTRACE_SYSCALLS) && defined(CONFIG_IA32_EMULATION) -#include +#include /* * Because ia32 syscalls do not map to x86_64 syscall numbers