aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2009-12-01 03:23:36 -0500
committerIngo Molnar <mingo@elte.hu>2009-12-01 11:33:29 -0500
commitfcc19438dda38dacc8c144e2db3ebc6b9fd4f8b8 (patch)
tree0f82cd0ce19bc113e2ba631c14f2e8c04884d608 /include
parent31c16b13349970b2684248c7d8608d2a96ae135d (diff)
trace_syscalls: Remove enter_id exit_id
use ->enter_event->id instead of ->enter_id use ->exit_event->id instead of ->exit_id 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: <4B14D288.7030001@cn.fujitsu.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r--include/linux/syscalls.h2
-rw-r--r--include/trace/syscall.h6
2 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index d3c9fd01a110..b9af87560adb 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -168,7 +168,6 @@ static void prof_sysexit_disable_##sname(struct ftrace_event_call *unused) \
168 if (!id) \ 168 if (!id) \
169 return -ENODEV; \ 169 return -ENODEV; \
170 event_enter_##sname.id = id; \ 170 event_enter_##sname.id = id; \
171 set_syscall_enter_id(num, id); \
172 INIT_LIST_HEAD(&event_enter_##sname.fields); \ 171 INIT_LIST_HEAD(&event_enter_##sname.fields); \
173 return 0; \ 172 return 0; \
174 } \ 173 } \
@@ -205,7 +204,6 @@ static void prof_sysexit_disable_##sname(struct ftrace_event_call *unused) \
205 if (!id) \ 204 if (!id) \
206 return -ENODEV; \ 205 return -ENODEV; \
207 event_exit_##sname.id = id; \ 206 event_exit_##sname.id = id; \
208 set_syscall_exit_id(num, id); \
209 INIT_LIST_HEAD(&event_exit_##sname.fields); \ 207 INIT_LIST_HEAD(&event_exit_##sname.fields); \
210 return 0; \ 208 return 0; \
211 } \ 209 } \
diff --git a/include/trace/syscall.h b/include/trace/syscall.h
index c5265c81c4e7..ca09561cd578 100644
--- a/include/trace/syscall.h
+++ b/include/trace/syscall.h
@@ -15,8 +15,6 @@
15 * @nb_args: number of parameters it takes 15 * @nb_args: number of parameters it takes
16 * @types: list of types as strings 16 * @types: list of types as strings
17 * @args: list of args as strings (args[i] matches types[i]) 17 * @args: list of args as strings (args[i] matches types[i])
18 * @enter_id: associated ftrace enter event id
19 * @exit_id: associated ftrace exit event id
20 * @enter_event: associated syscall_enter trace event 18 * @enter_event: associated syscall_enter trace event
21 * @exit_event: associated syscall_exit trace event 19 * @exit_event: associated syscall_exit trace event
22 */ 20 */
@@ -25,8 +23,6 @@ struct syscall_metadata {
25 int nb_args; 23 int nb_args;
26 const char **types; 24 const char **types;
27 const char **args; 25 const char **args;
28 int enter_id;
29 int exit_id;
30 26
31 struct ftrace_event_call *enter_event; 27 struct ftrace_event_call *enter_event;
32 struct ftrace_event_call *exit_event; 28 struct ftrace_event_call *exit_event;
@@ -35,8 +31,6 @@ struct syscall_metadata {
35#ifdef CONFIG_FTRACE_SYSCALLS 31#ifdef CONFIG_FTRACE_SYSCALLS
36extern unsigned long arch_syscall_addr(int nr); 32extern unsigned long arch_syscall_addr(int nr);
37extern int syscall_name_to_nr(const char *name); 33extern int syscall_name_to_nr(const char *name);
38void set_syscall_enter_id(int num, int id);
39void set_syscall_exit_id(int num, int id);
40 34
41extern int syscall_enter_format(struct ftrace_event_call *call, 35extern int syscall_enter_format(struct ftrace_event_call *call,
42 struct trace_seq *s); 36 struct trace_seq *s);