perf/core: Add a callback to perf events
authorFrederic Weisbecker <fweisbec@gmail.com>
Sun, 18 Oct 2009 13:33:50 +0000 (15:33 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Tue, 3 Nov 2009 18:11:53 +0000 (19:11 +0100)
commit97eaf5300b9d0cd99c310bf8c4a0f2f3296d88a3
treeaa047f4c078e2c9aeabcbcc9e33d93a50366b8e9
parent41a48d14f6991020c9bb6b93e289ca5b411ed09a
perf/core: Add a callback to perf events

A simple callback in a perf event can be used for multiple purposes.
For example it is useful for triggered based events like hardware
breakpoints that need a callback to dispatch a triggered breakpoint
event.

v2: Simplify a bit the callback attribution as suggested by Paul
    Mackerras

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: "K.Prasad" <prasad@linux.vnet.ibm.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mundt <lethal@linux-sh.org>
include/linux/perf_event.h
kernel/perf_event.c