1 // SPDX-License-Identifier: GPL-2.0
6 const struct sample_reg __weak sample_reg_masks[] = {
10 int __weak arch_sdt_arg_parse_op(char *old_op __maybe_unused,
11 char **new_op __maybe_unused)
16 #ifdef HAVE_PERF_REGS_SUPPORT
17 int perf_reg_value(u64 *valp, struct regs_dump *regs, int id)
20 u64 mask = regs->mask;
22 if (regs->cache_mask & (1ULL << id))
25 if (!(mask & (1ULL << id)))
28 for (i = 0; i < id; i++) {
29 if (mask & (1ULL << i))
33 regs->cache_mask |= (1ULL << id);
34 regs->cache_regs[id] = regs->regs[idx];
37 *valp = regs->cache_regs[id];