tracing: Add perf counter support for syscalls tracing
authorJason Baron <jbaron@redhat.com>
Mon, 10 Aug 2009 20:53:02 +0000 (16:53 -0400)
committerFrederic Weisbecker <fweisbec@gmail.com>
Tue, 11 Aug 2009 18:35:29 +0000 (20:35 +0200)
commitf4b5ffccc83c82947f5d9f15d6f1b6edb1b71cd7
tree06ec4a005b40ba0b6039e6c3425dd186486b8c6f
parent64c12e0444fcc6b75eb49144ba46d43dbdc6bc8f
tracing: Add perf counter support for syscalls tracing

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: Jason 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: Frederic Weisbecker <fweisbec@gmail.com>
include/linux/perf_counter.h
include/linux/syscalls.h
include/trace/syscall.h
kernel/trace/trace_syscalls.c