perf evlist: Use the right prefix for 'struct evlist' id_pos 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:
Родитель
2a99ff822d
Коммит
0a7e7ec90e
|
@ -103,13 +103,13 @@ struct evlist *perf_evlist__new_dummy(void)
|
|||
}
|
||||
|
||||
/**
|
||||
* perf_evlist__set_id_pos - set the positions of event ids.
|
||||
* evlist__set_id_pos - set the positions of event ids.
|
||||
* @evlist: selected event list
|
||||
*
|
||||
* Events with compatible sample types all have the same id_pos
|
||||
* and is_pos. For convenience, put a copy on evlist.
|
||||
*/
|
||||
void perf_evlist__set_id_pos(struct evlist *evlist)
|
||||
void evlist__set_id_pos(struct evlist *evlist)
|
||||
{
|
||||
struct evsel *first = evlist__first(evlist);
|
||||
|
||||
|
@ -117,14 +117,14 @@ void perf_evlist__set_id_pos(struct evlist *evlist)
|
|||
evlist->is_pos = first->is_pos;
|
||||
}
|
||||
|
||||
static void perf_evlist__update_id_pos(struct evlist *evlist)
|
||||
static void evlist__update_id_pos(struct evlist *evlist)
|
||||
{
|
||||
struct evsel *evsel;
|
||||
|
||||
evlist__for_each_entry(evlist, evsel)
|
||||
evsel__calc_id_pos(evsel);
|
||||
|
||||
perf_evlist__set_id_pos(evlist);
|
||||
evlist__set_id_pos(evlist);
|
||||
}
|
||||
|
||||
static void evlist__purge(struct evlist *evlist)
|
||||
|
@ -168,7 +168,7 @@ void evlist__add(struct evlist *evlist, struct evsel *entry)
|
|||
perf_evlist__add(&evlist->core, &entry->core);
|
||||
|
||||
if (evlist->core.nr_entries == 1)
|
||||
perf_evlist__set_id_pos(evlist);
|
||||
evlist__set_id_pos(evlist);
|
||||
}
|
||||
|
||||
void evlist__remove(struct evlist *evlist, struct evsel *evsel)
|
||||
|
@ -1275,7 +1275,7 @@ int evlist__open(struct evlist *evlist)
|
|||
goto out_err;
|
||||
}
|
||||
|
||||
perf_evlist__update_id_pos(evlist);
|
||||
evlist__update_id_pos(evlist);
|
||||
|
||||
evlist__for_each_entry(evlist, evsel) {
|
||||
err = evsel__open(evsel, evsel->core.cpus, evsel->core.threads);
|
||||
|
|
|
@ -158,7 +158,7 @@ void evlist__close(struct evlist *evlist);
|
|||
|
||||
struct callchain_param;
|
||||
|
||||
void perf_evlist__set_id_pos(struct evlist *evlist);
|
||||
void evlist__set_id_pos(struct evlist *evlist);
|
||||
void perf_evlist__config(struct evlist *evlist, struct record_opts *opts,
|
||||
struct callchain_param *callchain);
|
||||
int record_opts__config(struct record_opts *opts);
|
||||
|
|
|
@ -144,7 +144,7 @@ void perf_evlist__config(struct evlist *evlist, struct record_opts *opts,
|
|||
evsel__set_sample_id(evsel, use_sample_identifier);
|
||||
}
|
||||
|
||||
perf_evlist__set_id_pos(evlist);
|
||||
evlist__set_id_pos(evlist);
|
||||
}
|
||||
|
||||
static int get_max_rate(unsigned int *rate)
|
||||
|
|
|
@ -110,7 +110,7 @@ int evlist__start_sb_thread(struct evlist *evlist, struct target *target)
|
|||
evlist__for_each_entry(evlist, counter)
|
||||
evsel__set_sample_id(counter, can_sample_identifier);
|
||||
|
||||
perf_evlist__set_id_pos(evlist);
|
||||
evlist__set_id_pos(evlist);
|
||||
}
|
||||
|
||||
evlist__for_each_entry(evlist, counter) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче