]> git.ipfire.org Git - thirdparty/kernel/linux.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)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 21 Oct 2025 12:42:34 +0000 (05:42 -0700)
commitf1204e5846d22fb2fffbd1164eeb19535f306797
tree3c316e54450a0a9bd52a7cc4731c05a7059f1502
parent262c61435c0348f3c4652bb200268b2d1bcefbb0
perf annotate: Check return value of evsel__get_arch() properly

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>
tools/perf/util/annotate.c