uprobes/powerpc: Teach uprobes to ignore gdb breakpoints
authorAnanth N Mavinakayanahalli <ananth@in.ibm.com>
Fri, 22 Mar 2013 15:18:38 +0000 (20:48 +0530)
committerOleg Nesterov <oleg@redhat.com>
Thu, 4 Apr 2013 11:57:04 +0000 (13:57 +0200)
commitab07e807be533d6317ea0971900bdf547962effd
treedf6362115a358a9e198e934b4e0bcd98a30265f9
parent0908ad6e56b5a6e86745680bc324bdbfac64d0b6
uprobes/powerpc: Teach uprobes to ignore gdb breakpoints

Powerpc has many trap variants that could be used by entities like gdb.
Currently, running gdb on a program being traced by uprobes causes an
endless loop since uprobes doesn't understand that the trap was inserted
by some other entity and a SIGTRAP needs to be delivered.

Teach uprobes to ignore breakpoints that do not belong to it.

Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
arch/powerpc/kernel/uprobes.c