aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace/syscall.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/trace/syscall.h')
-rw-r--r--include/trace/syscall.h23
1 files changed, 10 insertions, 13 deletions
diff --git a/include/trace/syscall.h b/include/trace/syscall.h
index 961fda3556bb..31966a4fb8cc 100644
--- a/include/trace/syscall.h
+++ b/include/trace/syscall.h
@@ -25,6 +25,7 @@ struct syscall_metadata {
25 int nb_args; 25 int nb_args;
26 const char **types; 26 const char **types;
27 const char **args; 27 const char **args;
28 struct list_head enter_fields;
28 29
29 struct ftrace_event_call *enter_event; 30 struct ftrace_event_call *enter_event;
30 struct ftrace_event_call *exit_event; 31 struct ftrace_event_call *exit_event;
@@ -34,27 +35,23 @@ struct syscall_metadata {
34extern unsigned long arch_syscall_addr(int nr); 35extern unsigned long arch_syscall_addr(int nr);
35extern int init_syscall_trace(struct ftrace_event_call *call); 36extern int init_syscall_trace(struct ftrace_event_call *call);
36 37
37extern int syscall_enter_format(struct ftrace_event_call *call,
38 struct trace_seq *s);
39extern int syscall_exit_format(struct ftrace_event_call *call,
40 struct trace_seq *s);
41extern int syscall_enter_define_fields(struct ftrace_event_call *call);
42extern int syscall_exit_define_fields(struct ftrace_event_call *call);
43extern int reg_event_syscall_enter(struct ftrace_event_call *call); 38extern int reg_event_syscall_enter(struct ftrace_event_call *call);
44extern void unreg_event_syscall_enter(struct ftrace_event_call *call); 39extern void unreg_event_syscall_enter(struct ftrace_event_call *call);
45extern int reg_event_syscall_exit(struct ftrace_event_call *call); 40extern int reg_event_syscall_exit(struct ftrace_event_call *call);
46extern void unreg_event_syscall_exit(struct ftrace_event_call *call); 41extern void unreg_event_syscall_exit(struct ftrace_event_call *call);
47extern int 42extern int
48ftrace_format_syscall(struct ftrace_event_call *call, struct trace_seq *s); 43ftrace_format_syscall(struct ftrace_event_call *call, struct trace_seq *s);
49enum print_line_t print_syscall_enter(struct trace_iterator *iter, int flags); 44enum print_line_t print_syscall_enter(struct trace_iterator *iter, int flags,
50enum print_line_t print_syscall_exit(struct trace_iterator *iter, int flags); 45 struct trace_event *event);
46enum print_line_t print_syscall_exit(struct trace_iterator *iter, int flags,
47 struct trace_event *event);
51#endif 48#endif
52#ifdef CONFIG_EVENT_PROFILE
53int prof_sysenter_enable(struct ftrace_event_call *call);
54void prof_sysenter_disable(struct ftrace_event_call *call);
55int prof_sysexit_enable(struct ftrace_event_call *call);
56void prof_sysexit_disable(struct ftrace_event_call *call);
57 49
50#ifdef CONFIG_PERF_EVENTS
51int perf_sysenter_enable(struct ftrace_event_call *call);
52void perf_sysenter_disable(struct ftrace_event_call *call);
53int perf_sysexit_enable(struct ftrace_event_call *call);
54void perf_sysexit_disable(struct ftrace_event_call *call);
58#endif 55#endif
59 56
60#endif /* _TRACE_SYSCALL_H */ 57#endif /* _TRACE_SYSCALL_H */