diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2020-11-30 20:52:44 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2020-11-30 20:52:44 +0300 |
commit | e414fd1a3f709984a03f0fa287e39df6a7218e22 (patch) | |
tree | 26e5c42f6c66799fc4a14f99dce8f350fdced3a2 /tools/perf/tests/expand-cgroup.c | |
parent | 0a60b339475970213f2685d0da55a26d5f4f22f9 (diff) | |
download | linux-e414fd1a3f709984a03f0fa287e39df6a7218e22.tar.xz |
perf evlist: Use the right prefix for 'struct evlist' evsel list methods
perf_evlist__ is for 'struct perf_evlist' methods, in tools/lib/perf/,
go on completing this split.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests/expand-cgroup.c')
-rw-r--r-- | tools/perf/tests/expand-cgroup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/tests/expand-cgroup.c b/tools/perf/tests/expand-cgroup.c index 4c59f3ae438f..e8187f37fe1e 100644 --- a/tools/perf/tests/expand-cgroup.c +++ b/tools/perf/tests/expand-cgroup.c @@ -26,7 +26,7 @@ static int test_expand_events(struct evlist *evlist, char **ev_name; struct evsel *evsel; - TEST_ASSERT_VAL("evlist is empty", !perf_evlist__empty(evlist)); + TEST_ASSERT_VAL("evlist is empty", !evlist__empty(evlist)); nr_events = evlist->core.nr_entries; ev_name = calloc(nr_events, sizeof(*ev_name)); @@ -161,7 +161,7 @@ static int expand_libpfm_events(void) event_str, ret); goto out; } - if (perf_evlist__empty(evlist)) { + if (evlist__empty(evlist)) { pr_debug("libpfm was not enabled\n"); goto out; } |