5 const struct sample_reg __weak sample_reg_masks
[] = {
9 int perf_reg_value(u64
*valp
, struct regs_dump
*regs
, int id
)
12 u64 mask
= regs
->mask
;
14 if (regs
->cache_mask
& (1 << id
))
17 if (!(mask
& (1 << id
)))
20 for (i
= 0; i
< id
; i
++) {
25 regs
->cache_mask
|= (1 << id
);
26 regs
->cache_regs
[id
] = regs
->regs
[idx
];
29 *valp
= regs
->cache_regs
[id
];