diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-03 16:15:41 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-03 16:15:41 -0700 |
commit | 79b0691d0c1d3d4a976e3304a1512e6eca9671ec (patch) | |
tree | 23185e0f096a0924b3e2eafd823c83644c06d998 /tools/perf/util/perf_regs.h | |
parent | ca520cab25e0e8da717c596ccaa2c2b3650cfa09 (diff) | |
parent | 5b923564ccf43f92969c9e0fd199c8c5db657039 (diff) | |
download | op-kernel-dev-79b0691d0c1d3d4a976e3304a1512e6eca9671ec.zip op-kernel-dev-79b0691d0c1d3d4a976e3304a1512e6eca9671ec.tar.gz |
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull perf fixes from Ingo Molnar:
"Tooling fixes plus a handful of late arriving tooling changes"
* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
perf tools: Fix link time error with sample_reg_masks on non x86
perf build: Fix Intel PT instruction decoder dependency problem
perf dwarf: Fix potential array out of bounds access
perf record: Add ability to name registers to record
perf/x86: Add list of register names
perf script: Enable printing of interrupted machine state
perf evlist: Open event on evsel cpus and threads
bpf tools: New API to get name from a BPF object
perf tools: Fix build on powerpc broken by pt/bts
Diffstat (limited to 'tools/perf/util/perf_regs.h')
-rw-r--r-- | tools/perf/util/perf_regs.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/perf/util/perf_regs.h b/tools/perf/util/perf_regs.h index 980dbf7..2984dcc 100644 --- a/tools/perf/util/perf_regs.h +++ b/tools/perf/util/perf_regs.h @@ -5,6 +5,15 @@ struct regs_dump; +struct sample_reg { + const char *name; + uint64_t mask; +}; +#define SMPL_REG(n, b) { .name = #n, .mask = 1ULL << (b) } +#define SMPL_REG_END { .name = NULL } + +extern const struct sample_reg sample_reg_masks[]; + #ifdef HAVE_PERF_REGS_SUPPORT #include <perf_regs.h> |