|
@@ -176,7 +176,7 @@ int arch_validate_hwbkpt_settings(struct perf_event *bp)
|
|
length_max = 512 ; /* 64 doublewords */
|
|
length_max = 512 ; /* 64 doublewords */
|
|
/* DAWR region can't cross 512 boundary */
|
|
/* DAWR region can't cross 512 boundary */
|
|
if ((bp->attr.bp_addr >> 10) !=
|
|
if ((bp->attr.bp_addr >> 10) !=
|
|
- ((bp->attr.bp_addr + bp->attr.bp_len) >> 10))
|
|
|
|
|
|
+ ((bp->attr.bp_addr + bp->attr.bp_len - 1) >> 10))
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
if (info->len >
|
|
if (info->len >
|