4 #include <linux/types.h>
5 #include <linux/compiler.h>
13 #define SMPL_REG(n, b) { .name = #n, .mask = 1ULL << (b) }
14 #define SMPL_REG_END { .name = NULL }
16 extern const struct sample_reg sample_reg_masks[];
19 * The table sdt_reg_renamings is used for adjusting gcc/gas-generated
20 * registers before filling the uprobe tracer interface.
22 int sdt_rename_register(char **pdesc, char *old_name);
24 #ifdef HAVE_PERF_REGS_SUPPORT
25 #include <perf_regs.h>
27 int perf_reg_value(u64 *valp, struct regs_dump *regs, int id);
30 #define PERF_REGS_MASK 0
31 #define PERF_REGS_MAX 0
33 static inline const char *perf_reg_name(int id __maybe_unused)
38 static inline int perf_reg_value(u64 *valp __maybe_unused,
39 struct regs_dump *regs __maybe_unused,
40 int id __maybe_unused)
44 #endif /* HAVE_PERF_REGS_SUPPORT */
45 #endif /* __PERF_REGS_H */