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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/trace/syscall.h b/include/trace/syscall.h
index 5ce85d75d31b..9661dd406b93 100644
--- a/include/trace/syscall.h
+++ b/include/trace/syscall.h
@@ -34,6 +34,8 @@ DECLARE_TRACE_WITH_CALLBACK(syscall_exit,
34 * @args: list of args as strings (args[i] matches types[i]) 34 * @args: list of args as strings (args[i] matches types[i])
35 * @enter_id: associated ftrace enter event id 35 * @enter_id: associated ftrace enter event id
36 * @exit_id: associated ftrace exit event id 36 * @exit_id: associated ftrace exit event id
37 * @enter_event: associated syscall_enter trace event
38 * @exit_event: associated syscall_exit trace event
37 */ 39 */
38struct syscall_metadata { 40struct syscall_metadata {
39 const char *name; 41 const char *name;
@@ -42,6 +44,9 @@ struct syscall_metadata {
42 const char **args; 44 const char **args;
43 int enter_id; 45 int enter_id;
44 int exit_id; 46 int exit_id;
47
48 struct ftrace_event_call *enter_event;
49 struct ftrace_event_call *exit_event;
45}; 50};
46 51
47#ifdef CONFIG_FTRACE_SYSCALLS 52#ifdef CONFIG_FTRACE_SYSCALLS
@@ -59,6 +64,8 @@ extern int syscall_enter_format(struct ftrace_event_call *call,
59 struct trace_seq *s); 64 struct trace_seq *s);
60extern int syscall_exit_format(struct ftrace_event_call *call, 65extern int syscall_exit_format(struct ftrace_event_call *call,
61 struct trace_seq *s); 66 struct trace_seq *s);
67extern int syscall_enter_define_fields(struct ftrace_event_call *call);
68extern int syscall_exit_define_fields(struct ftrace_event_call *call);
62enum print_line_t print_syscall_enter(struct trace_iterator *iter, int flags); 69enum print_line_t print_syscall_enter(struct trace_iterator *iter, int flags);
63enum print_line_t print_syscall_exit(struct trace_iterator *iter, int flags); 70enum print_line_t print_syscall_exit(struct trace_iterator *iter, int flags);
64#endif 71#endif