• A
    perf trace: Support --events foo:bar --no-syscalls · 726f3234
    Arnaldo Carvalho de Melo 提交于
    I.e. support tracing just tracepoints, without strace like
    raw_syscalls:*.
    
    [acme@ssdandy linux]$ trace --no-sys --ev sched:*exec,sched:*switch,sched:*exit usleep 1
      0.048 (     ): sched:sched_process_exec:filename=/usr/bin/usleep pid=27298 old_pid=27298)
      0.369 (     ): sched:sched_switch:usleep:27298 [120] S ==> swapper/5:0 [120])
      0.452 (     ): sched:sched_process_exit:comm=usleep pid=27298 prio=120)
    [acme@ssdandy linux]$
    
    TODO: remove that (...) thing when --no-syscalls is specified.
    
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Borislav Petkov <bp@suse.de>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Don Zickus <dzickus@redhat.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Jiri Olsa <jolsa@redhat.com>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Stephane Eranian <eranian@google.com>
    Link: http://lkml.kernel.org/n/tip-vn0hsixsbhm31b2rpj97r96k@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
    726f3234
builtin-trace.c 71.3 KB