]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf annotate: Check return value of evsel__get_arch() properly
authorTianyou Li <tianyou.li@intel.com>
Mon, 20 Oct 2025 07:30:05 +0000 (15:30 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:02:33 +0000 (14:02 +0100)
commit9d231ef85d9a9f7aa86b3f4830b274b7e2fe4283
tree3e6829af624203aba80ecc29dcab0c27349bdcac
parent7ba92dd7206b147966f2d076eff8867b8b685f0d
perf annotate: Check return value of evsel__get_arch() properly

[ Upstream commit f1204e5846d22fb2fffbd1164eeb19535f306797 ]

Check the error code of evsel__get_arch() in the symbol__annotate().
Previously it checked non-zero value but after the refactoring it does
only for negative values.

Fixes: 0669729eb0afb0cf ("perf annotate: Factor out evsel__get_arch()")
Suggested-by: James Clark <james.clark@linaro.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Tianyou Li <tianyou.li@intel.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/perf/util/annotate.c