[PATCH 4/6] ftrace syscalls: Allow arch specific syscall symbol matching

2011-02-02 Thread Ian Munsie
From: Ian Munsie Some architectures have unusual symbol names and the generic code to match the symbol name with the function name for the syscall metadata will fail. For example, symbols on PPC64 start with a period and the generic code will fail to match them. This patch moves the match logic

Re: [PATCH 4/6] ftrace syscalls: Allow arch specific syscall symbol matching

2011-02-02 Thread Ian Munsie
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_matc

Re: [PATCH 4/6] ftrace syscalls: Allow arch specific syscall symbol matching

2011-02-02 Thread Steven Rostedt
On Wed, 2011-02-02 at 18:11 +1100, Ian Munsie wrote: I'll answer your question here. > diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h > index dcd6a7c..0d0e109 100644 > --- a/include/linux/ftrace.h > +++ b/include/linux/ftrace.h > @@ -527,6 +527,15 @@ extern enum ftrace_dump_mode ftr

[PATCH 4/6] ftrace syscalls: Allow arch specific syscall symbol matching

2011-02-01 Thread Ian Munsie
From: Ian Munsie Some architectures have unusual symbol names and the generic code to match the symbol name with the function name for the syscall metadata will fail. For example, symbols on PPC64 start with a period and the generic code will fail to match them. This patch moves the match logic