[PATCH 1/2] powerpc/hw_brk: Fix setting of length for exact mode breakpoints

Anshuman Khandual khandual at linux.vnet.ibm.com
Tue Jun 25 18:48:16 EST 2013


On 06/24/2013 11:17 AM, Michael Neuling wrote:
> The smallest match region for both the DABR and DAWR is 8 bytes, so the
> kernel needs to filter matches when users want to look at regions smaller than
> this.
> 
> Currently we set the length of PPC_BREAKPOINT_MODE_EXACT breakpoints to 8.
> This is wrong as in exact mode we should only match on 1 address, hence the
> length should be 1.
> 
> This ensures that the kernel will filter out any exact mode hardware breakpoint
> matches on any addresses other than the requested one.
> 
> Signed-off-by: Michael Neuling <mikey at neuling.org>

Reviewed-by: Anshuman Khandual <khandual at linux.vnet.ibm.com>



More information about the Linuxppc-dev mailing list