perf_counter, ftrace: Fix perf_counter integration
commit3a6593050fbd8bbcaed3a44d01c31d907315c86c
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Tue, 21 Jul 2009 15:34:57 +0000 (21 17:34 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 9 Aug 2009 10:47:25 +0000 (9 12:47 +0200)
tree5bbaa0015ed0b0986146cc6fa9390f559bcb66b1
parente3560336be655c6791316482fe288b119f34c427
perf_counter, ftrace: Fix perf_counter integration

Adds possible second part to the assign argument of TP_EVENT().

  TP_perf_assign(
__perf_count(foo);
__perf_addr(bar);
  )

Which, when specified make the swcounter increment with @foo instead
of the usual 1, and report @bar for PERF_SAMPLE_ADDR (data address
associated with the event) when this triggers a counter overflow.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jason Baron <jbaron@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/trace/ftrace.h
kernel/perf_counter.c