perf evlist: Use the right prefix for 'struct evlist' 'find' 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>
This commit is contained in:
@@ -2263,8 +2263,7 @@ static int process_total_mem(struct feat_fd *ff, void *data __maybe_unused)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct evsel *
|
||||
perf_evlist__find_by_index(struct evlist *evlist, int idx)
|
||||
static struct evsel *evlist__find_by_index(struct evlist *evlist, int idx)
|
||||
{
|
||||
struct evsel *evsel;
|
||||
|
||||
@@ -2285,7 +2284,7 @@ perf_evlist__set_event_name(struct evlist *evlist,
|
||||
if (!event->name)
|
||||
return;
|
||||
|
||||
evsel = perf_evlist__find_by_index(evlist, event->idx);
|
||||
evsel = evlist__find_by_index(evlist, event->idx);
|
||||
if (!evsel)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user