arm64: dts: h3ulcb: Drop superfluous status update for frequency override
[linux-2.6/btrfs-unstable.git] / tools / perf / util / perf_regs.h
blob679d6e493962267f7b219b88c05d06c61ef1d2ea
1 #ifndef __PERF_REGS_H
2 #define __PERF_REGS_H
4 #include <linux/types.h>
5 #include <linux/compiler.h>
7 struct regs_dump;
9 struct sample_reg {
10 const char *name;
11 uint64_t mask;
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[];
18 #ifdef HAVE_PERF_REGS_SUPPORT
19 #include <perf_regs.h>
21 int perf_reg_value(u64 *valp, struct regs_dump *regs, int id);
23 #else
24 #define PERF_REGS_MASK 0
25 #define PERF_REGS_MAX 0
27 static inline const char *perf_reg_name(int id __maybe_unused)
29 return NULL;
32 static inline int perf_reg_value(u64 *valp __maybe_unused,
33 struct regs_dump *regs __maybe_unused,
34 int id __maybe_unused)
36 return 0;
38 #endif /* HAVE_PERF_REGS_SUPPORT */
39 #endif /* __PERF_REGS_H */