summaryrefslogtreecommitdiffstats
path: root/tools/perf/arch/x86/tests/intel-cqm.c
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2022-08-09 11:07:02 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2022-08-10 14:30:09 -0300
commit806731a9465b42aaf887cbaf8bfee7eccc9417de (patch)
tree7a1cf71e17d762a0f7dffd5c473b999d20147ff6 /tools/perf/arch/x86/tests/intel-cqm.c
parent1da1d60774014137d776d0400fdf2f1779d8d4d5 (diff)
downloadlinux-stable-806731a9465b42aaf887cbaf8bfee7eccc9417de.tar.gz
linux-stable-806731a9465b42aaf887cbaf8bfee7eccc9417de.tar.bz2
linux-stable-806731a9465b42aaf887cbaf8bfee7eccc9417de.zip
perf tools: Do not pass NULL to parse_events()
Many cases do not use the extra error information provided by parse_events and instead pass NULL as the struct parse_events_error pointer. Add a wrapper for those cases so that the pointer is never NULL. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lore.kernel.org/r/20220809080702.6921-4-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/arch/x86/tests/intel-cqm.c')
-rw-r--r--tools/perf/arch/x86/tests/intel-cqm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/arch/x86/tests/intel-cqm.c b/tools/perf/arch/x86/tests/intel-cqm.c
index cb5b2c6c3b3b..360a082fc928 100644
--- a/tools/perf/arch/x86/tests/intel-cqm.c
+++ b/tools/perf/arch/x86/tests/intel-cqm.c
@@ -56,7 +56,7 @@ int test__intel_cqm_count_nmi_context(struct test_suite *test __maybe_unused, in
return TEST_FAIL;
}
- ret = parse_events(evlist, "intel_cqm/llc_occupancy/", NULL);
+ ret = parse_event(evlist, "intel_cqm/llc_occupancy/");
if (ret) {
pr_debug("parse_events failed, is \"intel_cqm/llc_occupancy/\" available?\n");
err = TEST_SKIP;