diff options
-rw-r--r-- | arch/powerpc/include/asm/ftrace.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/powerpc/include/asm/ftrace.h b/arch/powerpc/include/asm/ftrace.h index 9abddde372ab..24103fa57b54 100644 --- a/arch/powerpc/include/asm/ftrace.h +++ b/arch/powerpc/include/asm/ftrace.h | |||
@@ -73,13 +73,9 @@ struct dyn_arch_ftrace { | |||
73 | #define ARCH_HAS_SYSCALL_MATCH_SYM_NAME | 73 | #define ARCH_HAS_SYSCALL_MATCH_SYM_NAME |
74 | static inline bool arch_syscall_match_sym_name(const char *sym, const char *name) | 74 | static inline bool arch_syscall_match_sym_name(const char *sym, const char *name) |
75 | { | 75 | { |
76 | /* | 76 | /* We need to skip past the initial dot, and the __se_sys alias */ |
77 | * Compare the symbol name with the system call name. Skip the .sys or .SyS | 77 | return !strcmp(sym + 1, name) || |
78 | * prefix from the symbol name and the sys prefix from the system call name and | 78 | (!strncmp(sym, ".__se_sys", 9) && !strcmp(sym + 6, name)); |
79 | * just match the rest. This is only needed on ppc64 since symbol names on | ||
80 | * 32bit do not start with a period so the generic function will work. | ||
81 | */ | ||
82 | return !strcmp(sym + 4, name + 3); | ||
83 | } | 79 | } |
84 | #endif | 80 | #endif |
85 | #endif /* CONFIG_FTRACE_SYSCALLS && !__ASSEMBLY__ */ | 81 | #endif /* CONFIG_FTRACE_SYSCALLS && !__ASSEMBLY__ */ |