public inbox for linux-perf-users@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] perf more ELF machine usage
@ 2026-01-26 22:05 Ian Rogers
  2026-01-26 22:05 ` [PATCH v2 1/3] perf script: Fix script_fetch_insn for more than just x86 Ian Rogers
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ian Rogers @ 2026-01-26 22:05 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Namhyung Kim, Alexander Shishkin, Jiri Olsa, Ian Rogers,
	Adrian Hunter, James Clark, Shimin Guo, Andi Kleen, Leo Yan,
	Yujie Liu, linux-kernel, linux-perf-users

Switch 3 more cases where the perf_env arch was being used to
determine the architecture type and switch to using the ELF
machine. This includes the addition of minimal instruction parsing in
perf script for architectures other than x86, or x86 when
cross-platform.

v2: Resolve conflicts with:
    https://lore.kernel.org/lkml/20260123222209.1181249-1-irogers@google.com/

v1: https://lore.kernel.org/lkml/20260124001611.1332019-1-irogers@google.com/

Ian Rogers (3):
  perf script: Fix script_fetch_insn for more than just x86
  perf callchain: Switch callchain_param_setup from an arch to an
    e_machine
  perf thread-stack: Switch thread_stack__init to use e_machine

 tools/perf/arch/x86/util/Build                |  1 -
 tools/perf/arch/x86/util/archinsn.c           | 27 -------
 tools/perf/builtin-report.c                   |  6 +-
 tools/perf/builtin-script.c                   | 20 +-----
 .../scripts/python/Perf-Trace-Util/Context.c  |  2 +-
 tools/perf/tests/dlfilter-test.c              |  1 -
 tools/perf/util/archinsn.h                    | 12 ----
 tools/perf/util/callchain.c                   |  4 +-
 tools/perf/util/callchain.h                   |  2 +-
 tools/perf/util/dlfilter.c                    |  3 +-
 tools/perf/util/sample.c                      | 71 +++++++++++++++++++
 tools/perf/util/sample.h                      |  7 ++
 tools/perf/util/thread-stack.c                |  4 +-
 tools/perf/util/trace-event-scripting.c       | 16 -----
 tools/perf/util/trace-event.h                 |  3 -
 15 files changed, 90 insertions(+), 89 deletions(-)
 delete mode 100644 tools/perf/arch/x86/util/archinsn.c
 delete mode 100644 tools/perf/util/archinsn.h

-- 
2.52.0.457.g6b5491de43-goog


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-01-27  4:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-26 22:05 [PATCH v2 0/3] perf more ELF machine usage Ian Rogers
2026-01-26 22:05 ` [PATCH v2 1/3] perf script: Fix script_fetch_insn for more than just x86 Ian Rogers
2026-01-26 22:05 ` [PATCH v2 2/3] perf callchain: Switch callchain_param_setup from an arch to an e_machine Ian Rogers
2026-01-26 22:05 ` [PATCH v2 3/3] perf thread-stack: Switch thread_stack__init to use e_machine Ian Rogers
2026-01-27  4:09 ` [PATCH v2 0/3] perf more ELF machine usage Arnaldo Carvalho de Melo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox