[PATCH 4/6] ftrace syscalls: Allow arch specific syscall symbol matching
imunsie at au1.ibm.com
Thu Feb 3 11:28:27 EST 2011
Excerpts from Steven Rostedt's message of Thu Feb 03 01:04:44 +1100 2011:
> I'll answer your question here.
> > +#define arch_syscall_match_sym_name(sym, name) !strcmp(sym + 3, name + 3)
> Instead, you could have:
> #ifndef ARCH_HAS_SYSCALL_MATCH_SYM_NAME
> static inline arch_syscall_match_sym_name(const char *sym, const char *name)
> return strcmp(sym + 3, name + 3) != 0;
> If an arch needs to make its own, then it can simply override it by
> creating its own version and defining:
> #define ARCH_HAS_SYSCALL_MATCH_SYM_NAME
> Just like they do when an arch has its own strcmp.
Ok, I've changed it over. Just doing a quick regression test on ppc64 &
x86 then I'll repost.
More information about the Linuxppc-dev