perf evlist: Use the right prefix for 'struct evlist' nr_threads method

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: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 515ea461
...@@ -330,8 +330,7 @@ int evlist__add_newtp(struct evlist *evlist, const char *sys, const char *name, ...@@ -330,8 +330,7 @@ int evlist__add_newtp(struct evlist *evlist, const char *sys, const char *name,
return 0; return 0;
} }
static int perf_evlist__nr_threads(struct evlist *evlist, static int evlist__nr_threads(struct evlist *evlist, struct evsel *evsel)
struct evsel *evsel)
{ {
if (evsel->core.system_wide) if (evsel->core.system_wide)
return 1; return 1;
...@@ -450,7 +449,7 @@ void evlist__toggle_enable(struct evlist *evlist) ...@@ -450,7 +449,7 @@ void evlist__toggle_enable(struct evlist *evlist)
static int evlist__enable_event_cpu(struct evlist *evlist, struct evsel *evsel, int cpu) static int evlist__enable_event_cpu(struct evlist *evlist, struct evsel *evsel, int cpu)
{ {
int thread; int thread;
int nr_threads = perf_evlist__nr_threads(evlist, evsel); int nr_threads = evlist__nr_threads(evlist, evsel);
if (!evsel->core.fd) if (!evsel->core.fd)
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment