]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf print_insn: Use e_machine for fallback IP length check
authorIan Rogers <irogers@google.com>
Tue, 2 Jun 2026 15:25:02 +0000 (08:25 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 3 Jun 2026 19:46:07 +0000 (16:46 -0300)
commitc4e16f0543ff5df76e221141ab8e7430792bf841
treeb513034468341f0e7be7bbccb850e54506b13164
parent12c4737f55f2fb4a0062258336435c69847a426c
perf print_insn: Use e_machine for fallback IP length check

Avoid string comparisons with perf_env arch, switch to using the more
precise ELF machine.

Sort header files and fix missing definitions.

Signed-off-by: Ian Rogers <irogers@google.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Honglei Wang <jameshongleiwang@126.com>
Cc: Jan Polensky <japo@linux.ibm.com>
Cc: Sumanth Korikkar <sumanthk@linux.ibm.com>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/print_insn.c
tools/perf/util/print_insn.h