aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/trace/trace_syscalls.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c
index f837cccabcf7..f130dacfeef4 100644
--- a/kernel/trace/trace_syscalls.c
+++ b/kernel/trace/trace_syscalls.c
@@ -13,21 +13,6 @@ static int sys_refcount_exit;
13static DECLARE_BITMAP(enabled_enter_syscalls, FTRACE_SYSCALL_MAX); 13static DECLARE_BITMAP(enabled_enter_syscalls, FTRACE_SYSCALL_MAX);
14static DECLARE_BITMAP(enabled_exit_syscalls, FTRACE_SYSCALL_MAX); 14static DECLARE_BITMAP(enabled_exit_syscalls, FTRACE_SYSCALL_MAX);
15 15
16/* Option to display the parameters types */
17enum {
18 TRACE_SYSCALLS_OPT_TYPES = 0x1,
19};
20
21static struct tracer_opt syscalls_opts[] = {
22 { TRACER_OPT(syscall_arg_type, TRACE_SYSCALLS_OPT_TYPES) },
23 { }
24};
25
26static struct tracer_flags syscalls_flags = {
27 .val = 0, /* By default: no parameters types */
28 .opts = syscalls_opts
29};
30
31enum print_line_t 16enum print_line_t
32print_syscall_enter(struct trace_iterator *iter, int flags) 17print_syscall_enter(struct trace_iterator *iter, int flags)
33{ 18{
@@ -55,7 +40,7 @@ print_syscall_enter(struct trace_iterator *iter, int flags)
55 40
56 for (i = 0; i < entry->nb_args; i++) { 41 for (i = 0; i < entry->nb_args; i++) {
57 /* parameter types */ 42 /* parameter types */
58 if (syscalls_flags.val & TRACE_SYSCALLS_OPT_TYPES) { 43 if (trace_flags & TRACE_ITER_VERBOSE) {
59 ret = trace_seq_printf(s, "%s ", entry->types[i]); 44 ret = trace_seq_printf(s, "%s ", entry->types[i]);
60 if (!ret) 45 if (!ret)
61 return TRACE_TYPE_PARTIAL_LINE; 46 return TRACE_TYPE_PARTIAL_LINE;