• Jason Baron's avatar
    tracing: Add perf counter support for syscalls tracing · f4b5ffcc
    Jason Baron authored
    The perf counter support is automated for usual trace events. But we
    have to define specific callbacks for this to handle syscalls trace
    events
    
    Make 'perf stat -e syscalls:sys_enter_blah' work with syscall style
    tracepoints.
    Signed-off-by: default avatarJason Baron <jbaron@redhat.com>
    Cc: Lai Jiangshan <laijs@cn.fujitsu.com>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
    Cc: Jiaying Zhang <jiayingz@google.com>
    Cc: Martin Bligh <mbligh@google.com>
    Cc: Li Zefan <lizf@cn.fujitsu.com>
    Cc: Masami Hiramatsu <mhiramat@redhat.com>
    Signed-off-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
    f4b5ffcc
trace_syscalls.c 8.39 KB