5 const struct sample_reg __weak sample_reg_masks[] = {
9 int __weak arch_sdt_arg_parse_op(char *old_op __maybe_unused,
10 char **new_op __maybe_unused)
15 #ifdef HAVE_PERF_REGS_SUPPORT
16 int perf_reg_value(u64 *valp, struct regs_dump *regs, int id)
19 u64 mask = regs->mask;
21 if (regs->cache_mask & (1ULL << id))
24 if (!(mask & (1ULL << id)))
27 for (i = 0; i < id; i++) {
28 if (mask & (1ULL << i))
32 regs->cache_mask |= (1ULL << id);
33 regs->cache_regs[id] = regs->regs[idx];
36 *valp = regs->cache_regs[id];