mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-27 04:22:58 +00:00
perf evlist: Use the right prefix for 'struct evlist' 'toggle' 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:
@@ -447,7 +447,7 @@ void evlist__enable(struct evlist *evlist)
|
||||
evlist->enabled = true;
|
||||
}
|
||||
|
||||
void perf_evlist__toggle_enable(struct evlist *evlist)
|
||||
void evlist__toggle_enable(struct evlist *evlist)
|
||||
{
|
||||
(evlist->enabled ? evlist__disable : evlist__enable)(evlist);
|
||||
}
|
||||
@@ -727,7 +727,7 @@ perf_evlist__mmap_cb_get(struct perf_evlist *_evlist, bool overwrite, int idx)
|
||||
if (overwrite) {
|
||||
evlist->overwrite_mmap = maps;
|
||||
if (evlist->bkw_mmap_state == BKW_MMAP_NOTREADY)
|
||||
perf_evlist__toggle_bkw_mmap(evlist, BKW_MMAP_RUNNING);
|
||||
evlist__toggle_bkw_mmap(evlist, BKW_MMAP_RUNNING);
|
||||
} else {
|
||||
evlist->mmap = maps;
|
||||
}
|
||||
@@ -1613,8 +1613,7 @@ perf_evlist__find_evsel_by_str(struct evlist *evlist,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void perf_evlist__toggle_bkw_mmap(struct evlist *evlist,
|
||||
enum bkw_mmap_state state)
|
||||
void evlist__toggle_bkw_mmap(struct evlist *evlist, enum bkw_mmap_state state)
|
||||
{
|
||||
enum bkw_mmap_state old_state = evlist->bkw_mmap_state;
|
||||
enum action {
|
||||
|
||||
Reference in New Issue
Block a user