Ravi Bangoria c21a493a2b powerpc/xmon: Fix data-breakpoint
Currently xmon data-breakpoint feature is broken.

Whenever there is a watchpoint match occurs, hw_breakpoint_handler will
be called by do_break via notifier chains mechanism. If watchpoint is
registered by xmon, hw_breakpoint_handler won't find any associated
perf_event and returns immediately with NOTIFY_STOP. Similarly, do_break
also returns without notifying to xmon.

Solve this by returning NOTIFY_DONE when hw_breakpoint_handler does not
find any perf_event associated with matched watchpoint, rather than
NOTIFY_STOP, which tells the core code to continue calling the other
breakpoint handlers including the xmon one.

Cc: stable@vger.kernel.org
Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2017-02-15 20:02:25 +11:00
..
2016-06-14 13:58:26 +10:00
2016-12-16 09:26:42 -08:00
2016-06-21 15:30:56 +10:00
2016-12-16 09:26:42 -08:00
2014-11-27 09:32:58 +11:00
2016-08-07 23:50:09 -04:00
2016-08-07 23:50:09 -04:00
2015-08-06 15:10:20 +10:00
2017-02-10 13:28:04 +11:00
2016-08-07 23:50:09 -04:00
2016-07-15 14:57:47 +10:00
2016-12-16 09:26:42 -08:00
2015-04-07 17:15:13 +10:00