ARM_MAX_BRP
#define ARM_MAX_HBP_SLOTS (ARM_MAX_BRP + ARM_MAX_WRP)
static DEFINE_PER_CPU(struct perf_event *, bp_on_reg[ARM_MAX_BRP]);
num = (ARM_MAX_BRP << 1) - num;
long mid = ARM_MAX_BRP << 1;
#define AARCH64_DBG_REG_BCR (AARCH64_DBG_REG_BVR + ARM_MAX_BRP)
#define AARCH64_DBG_REG_WVR (AARCH64_DBG_REG_BCR + ARM_MAX_BRP)
struct perf_event *hbp_break[ARM_MAX_BRP];
static DEFINE_PER_CPU(struct perf_event *, bp_on_reg[ARM_MAX_BRP]);
for (i = 0; i < ARM_MAX_BRP; ++i) {
for (i = 0; i < ARM_MAX_BRP; i++) {
if (idx >= ARM_MAX_BRP)
idx = array_index_nospec(idx, ARM_MAX_BRP);
if (idx >= ARM_MAX_BRP)
idx = array_index_nospec(idx, ARM_MAX_BRP);