diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2009-12-01 16:23:47 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-01 17:33:29 +0100 |
commit | c252f65793874b56d50395ab604db465ce688665 (patch) | |
tree | 30bc32361d2b368679910270ec4e99e841fa099b /include/trace | |
parent | fcc19438dda38dacc8c144e2db3ebc6b9fd4f8b8 (diff) | |
download | op-kernel-dev-c252f65793874b56d50395ab604db465ce688665.zip op-kernel-dev-c252f65793874b56d50395ab604db465ce688665.tar.gz |
trace_syscalls: Add syscall_nr field to struct syscall_metadata
Add syscall_nr field to struct syscall_metadata,
it helps us to get syscall number easier.
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Acked-by: Jason Baron <jbaron@redhat.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <4B14D293.6090800@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/syscall.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/trace/syscall.h b/include/trace/syscall.h index ca09561..1531eef 100644 --- a/include/trace/syscall.h +++ b/include/trace/syscall.h @@ -12,6 +12,7 @@ * A syscall entry in the ftrace syscalls array. * * @name: name of the syscall + * @syscall_nr: number of the syscall * @nb_args: number of parameters it takes * @types: list of types as strings * @args: list of args as strings (args[i] matches types[i]) @@ -20,6 +21,7 @@ */ struct syscall_metadata { const char *name; + int syscall_nr; int nb_args; const char **types; const char **args; @@ -30,7 +32,6 @@ struct syscall_metadata { #ifdef CONFIG_FTRACE_SYSCALLS extern unsigned long arch_syscall_addr(int nr); -extern int syscall_name_to_nr(const char *name); extern int syscall_enter_format(struct ftrace_event_call *call, struct trace_seq *s); |