perf evlist: Use the right prefix for 'struct evlist' event group 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: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 7748bb71
...@@ -598,7 +598,7 @@ int cmd_annotate(int argc, const char **argv) ...@@ -598,7 +598,7 @@ int cmd_annotate(int argc, const char **argv)
HEADER_BRANCH_STACK); HEADER_BRANCH_STACK);
if (annotate.group_set) if (annotate.group_set)
perf_evlist__force_leader(annotate.session->evlist); evlist__force_leader(annotate.session->evlist);
ret = symbol__annotation_init(); ret = symbol__annotation_init();
if (ret < 0) if (ret < 0)
......
...@@ -923,7 +923,7 @@ static int record__open(struct record *rec) ...@@ -923,7 +923,7 @@ static int record__open(struct record *rec)
if ((errno == EINVAL || errno == EBADF) && if ((errno == EINVAL || errno == EBADF) &&
pos->leader != pos && pos->leader != pos &&
pos->weak_group) { pos->weak_group) {
pos = perf_evlist__reset_weak_group(evlist, pos, true); pos = evlist__reset_weak_group(evlist, pos, true);
goto try_again; goto try_again;
} }
rc = -errno; rc = -errno;
......
...@@ -211,7 +211,7 @@ static void setup_forced_leader(struct report *report, ...@@ -211,7 +211,7 @@ static void setup_forced_leader(struct report *report,
struct evlist *evlist) struct evlist *evlist)
{ {
if (report->group_set) if (report->group_set)
perf_evlist__force_leader(evlist); evlist__force_leader(evlist);
} }
static int process_feature_event(struct perf_session *session, static int process_feature_event(struct perf_session *session,
......
...@@ -759,7 +759,7 @@ static int __run_perf_stat(int argc, const char **argv, int run_idx) ...@@ -759,7 +759,7 @@ static int __run_perf_stat(int argc, const char **argv, int run_idx)
if ((errno == EINVAL || errno == EBADF) && if ((errno == EINVAL || errno == EBADF) &&
counter->leader != counter && counter->leader != counter &&
counter->weak_group) { counter->weak_group) {
perf_evlist__reset_weak_group(evsel_list, counter, false); evlist__reset_weak_group(evsel_list, counter, false);
assert(counter->reset_group); assert(counter->reset_group);
second_pass = true; second_pass = true;
continue; continue;
......
...@@ -62,9 +62,7 @@ ...@@ -62,9 +62,7 @@
* Make a group from 'leader' to 'last', requiring that the events were not * Make a group from 'leader' to 'last', requiring that the events were not
* already grouped to a different leader. * already grouped to a different leader.
*/ */
static int perf_evlist__regroup(struct evlist *evlist, static int evlist__regroup(struct evlist *evlist, struct evsel *leader, struct evsel *last)
struct evsel *leader,
struct evsel *last)
{ {
struct evsel *evsel; struct evsel *evsel;
bool grp; bool grp;
...@@ -775,7 +773,7 @@ int auxtrace_parse_sample_options(struct auxtrace_record *itr, ...@@ -775,7 +773,7 @@ int auxtrace_parse_sample_options(struct auxtrace_record *itr,
evsel->core.attr.aux_sample_size = term->val.aux_sample_size; evsel->core.attr.aux_sample_size = term->val.aux_sample_size;
/* If possible, group with the AUX event */ /* If possible, group with the AUX event */
if (aux_evsel && evsel->core.attr.aux_sample_size) if (aux_evsel && evsel->core.attr.aux_sample_size)
perf_evlist__regroup(evlist, aux_evsel, evsel); evlist__regroup(evlist, aux_evsel, evsel);
} }
} }
......
...@@ -1650,7 +1650,7 @@ bool perf_evlist__exclude_kernel(struct evlist *evlist) ...@@ -1650,7 +1650,7 @@ bool perf_evlist__exclude_kernel(struct evlist *evlist)
* the group display. Set the artificial group and set the leader's * the group display. Set the artificial group and set the leader's
* forced_leader flag to notify the display code. * forced_leader flag to notify the display code.
*/ */
void perf_evlist__force_leader(struct evlist *evlist) void evlist__force_leader(struct evlist *evlist)
{ {
if (!evlist->nr_groups) { if (!evlist->nr_groups) {
struct evsel *leader = evlist__first(evlist); struct evsel *leader = evlist__first(evlist);
...@@ -1660,9 +1660,7 @@ void perf_evlist__force_leader(struct evlist *evlist) ...@@ -1660,9 +1660,7 @@ void perf_evlist__force_leader(struct evlist *evlist)
} }
} }
struct evsel *perf_evlist__reset_weak_group(struct evlist *evsel_list, struct evsel *evlist__reset_weak_group(struct evlist *evsel_list, struct evsel *evsel, bool close)
struct evsel *evsel,
bool close)
{ {
struct evsel *c2, *leader; struct evsel *c2, *leader;
bool is_open = true; bool is_open = true;
......
...@@ -324,11 +324,10 @@ struct evsel *evlist__event2evsel(struct evlist *evlist, union perf_event *event ...@@ -324,11 +324,10 @@ struct evsel *evlist__event2evsel(struct evlist *evlist, union perf_event *event
bool perf_evlist__exclude_kernel(struct evlist *evlist); bool perf_evlist__exclude_kernel(struct evlist *evlist);
void perf_evlist__force_leader(struct evlist *evlist); void evlist__force_leader(struct evlist *evlist);
struct evsel *evlist__reset_weak_group(struct evlist *evlist, struct evsel *evsel, bool close);
struct evsel *perf_evlist__reset_weak_group(struct evlist *evlist,
struct evsel *evsel,
bool close);
#define EVLIST_CTL_CMD_ENABLE_TAG "enable" #define EVLIST_CTL_CMD_ENABLE_TAG "enable"
#define EVLIST_CTL_CMD_DISABLE_TAG "disable" #define EVLIST_CTL_CMD_DISABLE_TAG "disable"
#define EVLIST_CTL_CMD_ACK_TAG "ack\n" #define EVLIST_CTL_CMD_ACK_TAG "ack\n"
......
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