1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/types.h>
6 #include <linux/compiler.h>
14 #define SMPL_REG(n, b) { .name = #n, .mask = 1ULL << (b) }
15 #define SMPL_REG2(n, b) { .name = #n, .mask = 3ULL << (b) }
16 #define SMPL_REG_END { .name = NULL }
18 extern const struct sample_reg sample_reg_masks[];
25 int arch_sdt_arg_parse_op(char *old_op, char **new_op);
26 uint64_t arch__intr_reg_mask(void);
27 uint64_t arch__user_reg_mask(void);
29 #ifdef HAVE_PERF_REGS_SUPPORT
30 #include <perf_regs.h>
32 int perf_reg_value(u64 *valp, struct regs_dump *regs, int id);
35 #define PERF_REGS_MASK 0
36 #define PERF_REGS_MAX 0
38 static inline const char *perf_reg_name(int id __maybe_unused)
43 static inline int perf_reg_value(u64 *valp __maybe_unused,
44 struct regs_dump *regs __maybe_unused,
45 int id __maybe_unused)
49 #endif /* HAVE_PERF_REGS_SUPPORT */
50 #endif /* __PERF_REGS_H */