]> git.baikalelectronics.ru Git - kernel.git/commit
hw-breakpoints: Use struct perf_event_attr to define user breakpoints
authorFrederic Weisbecker <fweisbec@gmail.com>
Fri, 27 Nov 2009 03:55:53 +0000 (04:55 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 27 Nov 2009 05:22:58 +0000 (06:22 +0100)
commit7130cd63638d8dd0f8944306a2400a4a56536ac0
tree951cf12a3b5b3a37546b4f6dd2994bebdac19dc0
parentc064e20167370f95455031ea870e52e107e7a023
hw-breakpoints: Use struct perf_event_attr to define user breakpoints

In-kernel user breakpoints are created using functions in which
we pass breakpoint parameters as individual variables: address,
length and type.

Although it fits well for x86, this just does not scale across
archictectures that may support this api later as these may have
more or different needs. Pass in a perf_event_attr structure
instead because it is meant to evolve as much as possible into
a generic hardware breakpoint parameter structure.

Reported-by: K.Prasad <prasad@linux.vnet.ibm.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <1259294154-5197-1-git-send-regression-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/ptrace.c
include/linux/hw_breakpoint.h
kernel/hw_breakpoint.c