perf: Add kernel side syscall events support for breakpoints
authorFrederic Weisbecker <fweisbec@gmail.com>
Mon, 23 Nov 2009 14:42:34 +0000 (15:42 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 23 Nov 2009 17:18:31 +0000 (18:18 +0100)
commitf5ffe02e5046003ae7e2ce70d3d1c2a73331268b
treeed300505d80941e2ea95746f65a1b9eacfd4562f
parentfdf6bc95229821e3d9405eba28925b76e92b74d0
perf: Add kernel side syscall events support for breakpoints

Add the remaining necessary bits to support breakpoints created
through perf syscall.

We don't use the software counter interface as:

- We don't need to check against recursion, this is already done
  in hardware breakpoints arch level.

- We already know the perf event we are dealing with when the
  event is to be committed.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Prasad <prasad@linux.vnet.ibm.com>
LKML-Reference: <1258987355-8751-3-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_event.c