]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf symbol: Avoid use of machine__is
authorIan Rogers <irogers@google.com>
Tue, 2 Jun 2026 15:25:03 +0000 (08:25 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 3 Jun 2026 19:46:23 +0000 (16:46 -0300)
commit0af46a17c86ec447404d1e1555973186d058b775
treea922b8b30d09e9fd5f8e30286db7e5820934094a
parentc4e16f0543ff5df76e221141ab8e7430792bf841
perf symbol: Avoid use of machine__is

Switch to using the ELF machine from the dso or running machine rather
than the machine perf_env arch that may fall back on EM_HOST. This
also avoids potentially imprecise string comparisons.

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