]> 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 12:54:45 +0000 (13:54 +0100)
commitc8c93fe1c444a8bf0272555731aba775adf2046c
tree54bc28596d1d3a3e44560f4a61094e8a9a8e6fd4
parentcc67b6d82b122e123494c114753203a97d99802b
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