Thread (9 messages) 9 messages, 4 authors, 2021-12-14

Re: [PATCH v2 3/3] perf tools: Support register names from all archs

From: John Garry <hidden>
Date: 2021-12-08 11:52:10
Also in: linux-perf-users, linux-riscv, lkml

On 07/12/2021 18:06, German Gomez wrote:
  tools/perf/arch/arm/include/perf_regs.h       |  42 --
  tools/perf/arch/arm64/include/perf_regs.h     |  76 --
  tools/perf/arch/csky/include/perf_regs.h      |  82 ---
  tools/perf/arch/mips/include/perf_regs.h      |  69 --
  tools/perf/arch/powerpc/include/perf_regs.h   |  66 --
  tools/perf/arch/riscv/include/perf_regs.h     |  74 --
  tools/perf/arch/s390/include/perf_regs.h      |  78 --
  tools/perf/arch/x86/include/perf_regs.h       |  82 ---
  tools/perf/builtin-script.c                   |  18 +-
  tools/perf/util/perf_regs.c                   | 666 ++++++++++++++++++
  tools/perf/util/perf_regs.h                   |  10 +-
  .../scripting-engines/trace-event-python.c    |  10 +-
  tools/perf/util/session.c                     |  25 +-
  13 files changed, 697 insertions(+), 601 deletions(-)
Did you consider leaving the register structures where they are while
renaming to include the arch name and then having as externs or similar? 
I see an example of that idea for arm64_unwind_libunwind_ops.

Cheers,
John

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help