diff options
author | Ian Rogers <irogers@google.com> | 2024-02-07 00:59:02 +0100 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2024-02-07 17:55:11 +0100 |
commit | 8ce5fa4d68d372b663963c79123f926af9acb16d (patch) | |
tree | 579581b195a094d091a7c2943970957637c365d9 /tools/perf/arch/powerpc/util/kvm-stat.c | |
parent | perf/pmu-events/powerpc: Update json mapfile with Power11 PVR (diff) | |
download | linux-8ce5fa4d68d372b663963c79123f926af9acb16d.tar.xz linux-8ce5fa4d68d372b663963c79123f926af9acb16d.zip |
perf kvm powerpc: Fix build
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
Diffstat (limited to '')
-rw-r--r-- | tools/perf/arch/powerpc/util/kvm-stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/arch/powerpc/util/kvm-stat.c b/tools/perf/arch/powerpc/util/kvm-stat.c index d9a0ac1cdf30..c8357b571ccf 100644 --- a/tools/perf/arch/powerpc/util/kvm-stat.c +++ b/tools/perf/arch/powerpc/util/kvm-stat.c @@ -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; |