diff options
Diffstat (limited to 'include/trace/syscall.h')
| -rw-r--r-- | include/trace/syscall.h | 23 |
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 { | |||
| 34 | extern unsigned long arch_syscall_addr(int nr); | 35 | extern unsigned long arch_syscall_addr(int nr); |
| 35 | extern int init_syscall_trace(struct ftrace_event_call *call); | 36 | extern int init_syscall_trace(struct ftrace_event_call *call); |
| 36 | 37 | ||
| 37 | extern int syscall_enter_format(struct ftrace_event_call *call, | ||
| 38 | struct trace_seq *s); | ||
| 39 | extern int syscall_exit_format(struct ftrace_event_call *call, | ||
| 40 | struct trace_seq *s); | ||
| 41 | extern int syscall_enter_define_fields(struct ftrace_event_call *call); | ||
| 42 | extern int syscall_exit_define_fields(struct ftrace_event_call *call); | ||
| 43 | extern int reg_event_syscall_enter(struct ftrace_event_call *call); | 38 | extern int reg_event_syscall_enter(struct ftrace_event_call *call); |
| 44 | extern void unreg_event_syscall_enter(struct ftrace_event_call *call); | 39 | extern void unreg_event_syscall_enter(struct ftrace_event_call *call); |
| 45 | extern int reg_event_syscall_exit(struct ftrace_event_call *call); | 40 | extern int reg_event_syscall_exit(struct ftrace_event_call *call); |
| 46 | extern void unreg_event_syscall_exit(struct ftrace_event_call *call); | 41 | extern void unreg_event_syscall_exit(struct ftrace_event_call *call); |
| 47 | extern int | 42 | extern int |
| 48 | ftrace_format_syscall(struct ftrace_event_call *call, struct trace_seq *s); | 43 | ftrace_format_syscall(struct ftrace_event_call *call, struct trace_seq *s); |
| 49 | enum print_line_t print_syscall_enter(struct trace_iterator *iter, int flags); | 44 | enum print_line_t print_syscall_enter(struct trace_iterator *iter, int flags, |
| 50 | enum print_line_t print_syscall_exit(struct trace_iterator *iter, int flags); | 45 | struct trace_event *event); |
| 46 | enum 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 | ||
| 53 | int prof_sysenter_enable(struct ftrace_event_call *call); | ||
| 54 | void prof_sysenter_disable(struct ftrace_event_call *call); | ||
| 55 | int prof_sysexit_enable(struct ftrace_event_call *call); | ||
| 56 | void prof_sysexit_disable(struct ftrace_event_call *call); | ||
| 57 | 49 | ||
| 50 | #ifdef CONFIG_PERF_EVENTS | ||
| 51 | int perf_sysenter_enable(struct ftrace_event_call *call); | ||
| 52 | void perf_sysenter_disable(struct ftrace_event_call *call); | ||
| 53 | int perf_sysexit_enable(struct ftrace_event_call *call); | ||
| 54 | void perf_sysexit_disable(struct ftrace_event_call *call); | ||
| 58 | #endif | 55 | #endif |
| 59 | 56 | ||
| 60 | #endif /* _TRACE_SYSCALL_H */ | 57 | #endif /* _TRACE_SYSCALL_H */ |
