]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
perf kvm powerpc: Fix build
authorIan Rogers <irogers@google.com>
Tue, 6 Feb 2024 23:59:02 +0000 (15:59 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 7 Feb 2024 16:55:11 +0000 (08:55 -0800)
Updates to struct parse_events_error needed to be carried through to
PowerPC specific event parsing.

Fixes: fd7b8e8fb20f ("perf parse-events: Print all errors")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Ian Rogers <irogers@google.com>
Acked-by: Namhyung <namhyung@kernel.org>
Cc: James Clark <james.clark@arm.com>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240206235902.2917395-1-irogers@google.com
tools/perf/arch/powerpc/util/kvm-stat.c

index d9a0ac1cdf30208301e5874b8db1aa1067f41102..c8357b571ccffff3e82cf16f7124c417143c1f64 100644 (file)
@@ -114,7 +114,7 @@ static int is_tracepoint_available(const char *str, struct evlist *evlist)
 
        parse_events_error__init(&err);
        ret = parse_events(evlist, str, &err);
-       if (err.str)
+       if (ret)
                parse_events_error__print(&err, "tracepoint");
        parse_events_error__exit(&err);
        return ret;