]> git.baikalelectronics.ru Git - kernel.git/commit
hw-breakpoints: Use overflow handler instead of the event callback
authorFrederic Weisbecker <fweisbec@gmail.com>
Sat, 5 Dec 2009 08:44:31 +0000 (09:44 +0100)
committerFrederic Weisbecker <fweisbec@gmail.com>
Sun, 6 Dec 2009 07:27:18 +0000 (08:27 +0100)
commitb326e9560a28fc3e950637ef51847ed8f05c1335
tree0804c8c4f28d4ae152d5e9205ce5a958f0d26b79
parent2f0993e0fb663c49e4d1e02654f6203246be4817
hw-breakpoints: Use overflow handler instead of the event callback

struct perf_event::event callback was called when a breakpoint
triggers. But this is a rather opaque callback, pretty
tied-only to the breakpoint API and not really integrated into perf
as it triggers even when we don't overflow.

We prefer to use overflow_handler() as it fits into the perf events
rules, being called only when we overflow.

Reported-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: "K. Prasad" <prasad@linux.vnet.ibm.com>
arch/x86/kernel/hw_breakpoint.c
arch/x86/kernel/ptrace.c
include/linux/hw_breakpoint.h
include/linux/perf_event.h
kernel/hw_breakpoint.c
kernel/perf_event.c
kernel/trace/trace_ksym.c
samples/hw_breakpoint/data_breakpoint.c