tracing/syscalls: Fix the output of syscalls with no arguments
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 20 Aug 2009 08:13:35 +0000 (16:13 +0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 20 Aug 2009 10:12:22 +0000 (12:12 +0200)
commit4539f07701b3f743580d19dc5d655fb8d21b0a3c
tree15bb4504cda47f4e5281831eccd91b51dcd4b095
parent540b7b8d65575c80162f2a0f38e1d313c92a6042
tracing/syscalls: Fix the output of syscalls with no arguments

Before:

  # echo 1 > events/syscalls/sys_enter_sync/enable
  # cat events/syscalls/sys_enter_sync/format
  ...
        field:int nr;   offset:12;      size:4;

  print fmt: "# sync
  # cat trace
  ...
            sync-8950  [000]  2366.087670: sys_sync(

After:

  # echo 1 > events/syscalls/sys_enter_sync/enable
  # cat events/syscalls/sys_enter_sync/format
  ...
        field:int nr;   offset:12;      size:4;

  print fmt: ""
  # sync
  # cat trace
            sync-2134  [001]   136.780735: sys_sync()

Reported-by: Masami Hiramatsu <mhiramat@redhat.com>
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Jason Baron <jbaron@redhat.com>
Cc: Masami Hiramatsu <mhiramat@redhat.com>
LKML-Reference: <4A8D05AF.20103@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_syscalls.c