提交 900c8ead 编写于 作者: A Arnaldo Carvalho de Melo

perf evlist: Use the right prefix for 'struct evlist' event selection 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: NArnaldo Carvalho de Melo <acme@redhat.com>
上级 64b4778b
...@@ -416,7 +416,7 @@ static int intel_pt_track_switches(struct evlist *evlist) ...@@ -416,7 +416,7 @@ static int intel_pt_track_switches(struct evlist *evlist)
struct evsel *evsel; struct evsel *evsel;
int err; int err;
if (!perf_evlist__can_select_event(evlist, sched_switch)) if (!evlist__can_select_event(evlist, sched_switch))
return -EPERM; return -EPERM;
err = parse_events(evlist, sched_switch, NULL); err = parse_events(evlist, sched_switch, NULL);
......
...@@ -380,7 +380,7 @@ int test__switch_tracking(struct test *test __maybe_unused, int subtest __maybe_ ...@@ -380,7 +380,7 @@ int test__switch_tracking(struct test *test __maybe_unused, int subtest __maybe_
cycles_evsel = evlist__last(evlist); cycles_evsel = evlist__last(evlist);
/* Third event */ /* Third event */
if (!perf_evlist__can_select_event(evlist, sched_switch)) { if (!evlist__can_select_event(evlist, sched_switch)) {
pr_debug("No sched_switch\n"); pr_debug("No sched_switch\n");
err = 0; err = 0;
goto out; goto out;
......
...@@ -3494,7 +3494,7 @@ static int perf_evsel_menu__run(struct evsel_menu *menu, ...@@ -3494,7 +3494,7 @@ static int perf_evsel_menu__run(struct evsel_menu *menu,
continue; continue;
pos = menu->selection; pos = menu->selection;
browse_hists: browse_hists:
perf_evlist__set_selected(evlist, pos); evlist__set_selected(evlist, pos);
/* /*
* Give the calling tool a chance to populate the non * Give the calling tool a chance to populate the non
* default evsel resorted hists tree. * default evsel resorted hists tree.
......
...@@ -1183,8 +1183,7 @@ bool evlist__sample_id_all(struct evlist *evlist) ...@@ -1183,8 +1183,7 @@ bool evlist__sample_id_all(struct evlist *evlist)
return first->core.attr.sample_id_all; return first->core.attr.sample_id_all;
} }
void perf_evlist__set_selected(struct evlist *evlist, void evlist__set_selected(struct evlist *evlist, struct evsel *evsel)
struct evsel *evsel)
{ {
evlist->selected = evsel; evlist->selected = evsel;
} }
......
...@@ -192,8 +192,7 @@ void evlist__toggle_enable(struct evlist *evlist); ...@@ -192,8 +192,7 @@ void evlist__toggle_enable(struct evlist *evlist);
int evlist__enable_event_idx(struct evlist *evlist, struct evsel *evsel, int idx); int evlist__enable_event_idx(struct evlist *evlist, struct evsel *evsel, int idx);
void perf_evlist__set_selected(struct evlist *evlist, void evlist__set_selected(struct evlist *evlist, struct evsel *evsel);
struct evsel *evsel);
int evlist__create_maps(struct evlist *evlist, struct target *target); int evlist__create_maps(struct evlist *evlist, struct target *target);
int evlist__apply_filters(struct evlist *evlist, struct evsel **err_evsel); int evlist__apply_filters(struct evlist *evlist, struct evsel **err_evsel);
...@@ -238,7 +237,7 @@ static inline struct evsel *evlist__last(struct evlist *evlist) ...@@ -238,7 +237,7 @@ static inline struct evsel *evlist__last(struct evlist *evlist)
int evlist__strerror_open(struct evlist *evlist, int err, char *buf, size_t size); int evlist__strerror_open(struct evlist *evlist, int err, char *buf, size_t size);
int evlist__strerror_mmap(struct evlist *evlist, int err, char *buf, size_t size); int evlist__strerror_mmap(struct evlist *evlist, int err, char *buf, size_t size);
bool perf_evlist__can_select_event(struct evlist *evlist, const char *str); bool evlist__can_select_event(struct evlist *evlist, const char *str);
void evlist__to_front(struct evlist *evlist, struct evsel *move_evsel); void evlist__to_front(struct evlist *evlist, struct evsel *move_evsel);
/** /**
......
...@@ -217,7 +217,7 @@ int record_opts__config(struct record_opts *opts) ...@@ -217,7 +217,7 @@ int record_opts__config(struct record_opts *opts)
return record_opts__config_freq(opts); return record_opts__config_freq(opts);
} }
bool perf_evlist__can_select_event(struct evlist *evlist, const char *str) bool evlist__can_select_event(struct evlist *evlist, const char *str)
{ {
struct evlist *temp_evlist; struct evlist *temp_evlist;
struct evsel *evsel; struct evsel *evsel;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册