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/arch/sparc/util/dwarf-regs.c | |
parent | ca520cab25e0e8da717c596ccaa2c2b3650cfa09 (diff) | |
parent | 5b923564ccf43f92969c9e0fd199c8c5db657039 (diff) |
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/arch/sparc/util/dwarf-regs.c')
-rw-r--r-- | tools/perf/arch/sparc/util/dwarf-regs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/arch/sparc/util/dwarf-regs.c b/tools/perf/arch/sparc/util/dwarf-regs.c index 92eda412fed3..b704fdb9237a 100644 --- a/tools/perf/arch/sparc/util/dwarf-regs.c +++ b/tools/perf/arch/sparc/util/dwarf-regs.c @@ -39,5 +39,5 @@ const char *sparc_regs_table[SPARC_MAX_REGS] = { */ const char *get_arch_regstr(unsigned int n) { - return (n <= SPARC_MAX_REGS) ? sparc_regs_table[n] : NULL; + return (n < SPARC_MAX_REGS) ? sparc_regs_table[n] : NULL; } |