perf tools: Add interface to arch registers sets
authorJiri Olsa <[email protected]>
Tue, 7 Aug 2012 13:20:43 +0000 (15:20 +0200)
committerArnaldo Carvalho de Melo <[email protected]>
Fri, 10 Aug 2012 19:32:59 +0000 (16:32 -0300)
commit2bcd355b71dafa5793a680c5db043abe9f708418
tree7611a9e7ccdc79f39cc355f54c8a7064bfa96d45
parent239cc47819ec5e1acde42d416755c332ed5cf2c8
perf tools: Add interface to arch registers sets

Adding header files to access unified API for arch registers.

  util/perf_regs.h - global perf_reg declarations
  arch/x86/include/perf_regs.h - x86 arch specific

Adding perf_reg_name function to obtain register name based on the reg
ID value, and PERF_REGS_MASK macro with mask definition of all current
arch registers (will be used in unwind patches).

Signed-off-by: Jiri Olsa <[email protected]>
Cc: "Frank Ch. Eigler" <[email protected]>
Cc: Arun Sharma <[email protected]>
Cc: Benjamin Redelings <[email protected]>
Cc: Corey Ashford <[email protected]>
Cc: Cyrill Gorcunov <[email protected]>
Cc: Frank Ch. Eigler <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Robert Richter <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Tom Zanussi <[email protected]>
Cc: Ulrich Drepper <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/Makefile
tools/perf/arch/x86/include/perf_regs.h [new file with mode: 0644]
tools/perf/util/perf_regs.h [new file with mode: 0644]