Skip to content

Commit db0ea13

Browse files
committed
perf evlist: Use the right prefix for 'struct evlist' record 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>
1 parent b979a2f commit db0ea13

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎tools/perf/builtin-record.c‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,8 +1349,7 @@ static void workload_exec_failed_signal(int signo __maybe_unused,
13491349
static void snapshot_sig_handler(int sig);
13501350
static void alarm_sig_handler(int sig);
13511351

1352-
static const struct perf_event_mmap_page *
1353-
perf_evlist__pick_pc(struct evlist *evlist)
1352+
static const struct perf_event_mmap_page *evlist__pick_pc(struct evlist *evlist)
13541353
{
13551354
if (evlist) {
13561355
if (evlist->mmap && evlist->mmap[0].core.base)
@@ -1363,9 +1362,7 @@ perf_evlist__pick_pc(struct evlist *evlist)
13631362

13641363
static const struct perf_event_mmap_page *record__pick_pc(struct record *rec)
13651364
{
1366-
const struct perf_event_mmap_page *pc;
1367-
1368-
pc = perf_evlist__pick_pc(rec->evlist);
1365+
const struct perf_event_mmap_page *pc = evlist__pick_pc(rec->evlist);
13691366
if (pc)
13701367
return pc;
13711368
return NULL;

0 commit comments

Comments
 (0)