diff options
author | Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com> | 2016-11-22 14:55:59 +0530 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2017-06-05 21:17:08 +0100 |
commit | 8a37188fcf4d1215ae484b33c613c570df772879 (patch) | |
tree | 7c05e45517133cc4baee101c18031b21558e8741 /drivers | |
parent | 6cc435bb47841104995c8668de8f5839d0040357 (diff) | |
download | linux-stable-8a37188fcf4d1215ae484b33c613c570df772879.tar.gz linux-stable-8a37188fcf4d1215ae484b33c613c570df772879.tar.bz2 linux-stable-8a37188fcf4d1215ae484b33c613c570df772879.zip |
powerpc/xmon: Fix data-breakpoint
commit c21a493a2b44650707d06741601894329486f2ad upstream.
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.
Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
[bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions