]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf capstone: Determine architecture from e_machine
authorIan Rogers <irogers@google.com>
Tue, 2 Jun 2026 15:25:01 +0000 (08:25 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 3 Jun 2026 19:45:43 +0000 (16:45 -0300)
commit12c4737f55f2fb4a0062258336435c69847a426c
treeef3e3d9aa3a5319d7ba647b7c3613459abf20ffc
parentf7c6e4b99ded250b3fdeaa5be4ccaac9ae05f8d9
perf capstone: Determine architecture from e_machine

Avoid the use of arch string that is imprecise and use the
e_machine. Do more e_machine to capstone machine translations adding
MIPS and RISCV. Remove unnecessary maybe_unused annotations.

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/capstone.c