1 // SPDX-License-Identifier: GPL-2.0
6 int __weak
arch_sdt_arg_parse_op(char *old_op __maybe_unused
,
7 char **new_op __maybe_unused
)
12 uint64_t __weak
arch__intr_reg_mask(void)
14 return PERF_REGS_MASK
;
17 uint64_t __weak
arch__user_reg_mask(void)
19 return PERF_REGS_MASK
;
22 #ifdef HAVE_PERF_REGS_SUPPORT
23 int perf_reg_value(u64
*valp
, struct regs_dump
*regs
, int id
)
26 u64 mask
= regs
->mask
;
28 if (regs
->cache_mask
& (1ULL << id
))
31 if (!(mask
& (1ULL << id
)))
34 for (i
= 0; i
< id
; i
++) {
35 if (mask
& (1ULL << i
))
39 regs
->cache_mask
|= (1ULL << id
);
40 regs
->cache_regs
[id
] = regs
->regs
[idx
];
43 *valp
= regs
->cache_regs
[id
];