|
|
@@ -547,13 +547,14 @@ int hw_breakpoint_arch_parse(struct perf_event *bp,
|
|
|
/* Aligned */
|
|
|
break;
|
|
|
case 1:
|
|
|
- /* Allow single byte watchpoint. */
|
|
|
- if (hw->ctrl.len == ARM_BREAKPOINT_LEN_1)
|
|
|
- break;
|
|
|
case 2:
|
|
|
/* Allow halfword watchpoints and breakpoints. */
|
|
|
if (hw->ctrl.len == ARM_BREAKPOINT_LEN_2)
|
|
|
break;
|
|
|
+ case 3:
|
|
|
+ /* Allow single byte watchpoint. */
|
|
|
+ if (hw->ctrl.len == ARM_BREAKPOINT_LEN_1)
|
|
|
+ break;
|
|
|
default:
|
|
|
return -EINVAL;
|
|
|
}
|