linux/tools/perf/scripts/python
Ian Rogers 7ce6dfc603 perf script: Fix script_fetch_insn for more than just x86
The script_fetch_insn code was only supported on natively running x86.

Implement a crude elf_machine_max_instruction_length function and use to
give an instruction length on more than just x86.

Use the ELF machine to determine the length to use to support
cross-architecture development.

Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Leo Yan <leo.yan@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Shimin Guo <shimin.guo@skydio.com>
Cc: Yujie Liu <yujie.liu@intel.com>
[ Conditionally define EM_CSKY and EM_LOONGARCH for older distros ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2026-01-27 01:35:22 -03:00
..
Perf-Trace-Util perf script: Fix script_fetch_insn for more than just x86 2026-01-27 01:35:22 -03:00
bin perf script: Fix hangup in offline flamegraph report 2025-02-18 16:12:19 -08:00
arm-cs-trace-disasm.py perf script python: Adjust objdump start/end per map pgoff parameter 2024-11-08 22:42:57 -08:00
check-perf-trace.py
compaction-times.py
event_analyzing_sample.py
export-to-postgresql.py
export-to-sqlite.py
exported-sql-viewer.py perf scripts python: exported-sql-viewer.py: Fix pattern matching with Python 3 2025-05-12 14:18:16 -03:00
failed-syscalls-by-pid.py
flamegraph.py perf flamegraph: Fix minor pylint/type hint issues 2025-07-16 10:43:27 -07:00
futex-contention.py
gecko.py
intel-pt-events.py
libxed.py
mem-phys-addr.py perf script python: Improve physical mem type resolution 2024-12-09 17:51:53 -03:00
net_dropmonitor.py
netdev-times.py
parallel-perf.py
powerpc-hcalls.py
sched-migration.py
sctop.py
stackcollapse.py
stat-cpi.py
syscall-counts-by-pid.py
syscall-counts.py
task-analyzer.py