• Li Zefan's avatar
    tracing/syscalls: Fix the output of syscalls with no arguments · 4539f077
    Li Zefan authored
    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: default avatarMasami Hiramatsu <mhiramat@redhat.com>
    Signed-off-by: default avatarLi 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: default avatarIngo Molnar <mingo@elte.hu>
    4539f077
trace_syscalls.c 11.8 KB