perf evlist: Use the right prefix for 'struct evlist' record methods
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 30 Nov 2020 18:19:40 +0000 (15:19 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 30 Nov 2020 18:19:40 +0000 (15:19 -0300)
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>
tools/perf/builtin-record.c

index 92039fb..d832c10 100644 (file)
@@ -1349,8 +1349,7 @@ static void workload_exec_failed_signal(int signo __maybe_unused,
 static void snapshot_sig_handler(int sig);
 static void alarm_sig_handler(int sig);
 
-static const struct perf_event_mmap_page *
-perf_evlist__pick_pc(struct evlist *evlist)
+static const struct perf_event_mmap_page *evlist__pick_pc(struct evlist *evlist)
 {
        if (evlist) {
                if (evlist->mmap && evlist->mmap[0].core.base)
@@ -1363,9 +1362,7 @@ perf_evlist__pick_pc(struct evlist *evlist)
 
 static const struct perf_event_mmap_page *record__pick_pc(struct record *rec)
 {
-       const struct perf_event_mmap_page *pc;
-
-       pc = perf_evlist__pick_pc(rec->evlist);
+       const struct perf_event_mmap_page *pc = evlist__pick_pc(rec->evlist);
        if (pc)
                return pc;
        return NULL;