|
@@ -610,13 +610,14 @@ int arch_validate_hwbkpt_settings(struct perf_event *bp)
|
|
/* Aligned */
|
|
/* Aligned */
|
|
break;
|
|
break;
|
|
case 1:
|
|
case 1:
|
|
- /* Allow single byte watchpoint. */
|
|
|
|
- if (info->ctrl.len == ARM_BREAKPOINT_LEN_1)
|
|
|
|
- break;
|
|
|
|
case 2:
|
|
case 2:
|
|
/* Allow halfword watchpoints and breakpoints. */
|
|
/* Allow halfword watchpoints and breakpoints. */
|
|
if (info->ctrl.len == ARM_BREAKPOINT_LEN_2)
|
|
if (info->ctrl.len == ARM_BREAKPOINT_LEN_2)
|
|
break;
|
|
break;
|
|
|
|
+ case 3:
|
|
|
|
+ /* Allow single byte watchpoint. */
|
|
|
|
+ if (info->ctrl.len == ARM_BREAKPOINT_LEN_1)
|
|
|
|
+ break;
|
|
default:
|
|
default:
|
|
ret = -EINVAL;
|
|
ret = -EINVAL;
|
|
goto out;
|
|
goto out;
|