perf evlist: Use the right prefix for 'struct evlist' header 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 44d2a557
...@@ -1131,7 +1131,7 @@ bool evlist__valid_read_format(struct evlist *evlist) ...@@ -1131,7 +1131,7 @@ bool evlist__valid_read_format(struct evlist *evlist)
return true; return true;
} }
u16 perf_evlist__id_hdr_size(struct evlist *evlist) u16 evlist__id_hdr_size(struct evlist *evlist)
{ {
struct evsel *first = evlist__first(evlist); struct evsel *first = evlist__first(evlist);
struct perf_sample *data; struct perf_sample *data;
......
...@@ -201,7 +201,7 @@ u64 __evlist__combined_sample_type(struct evlist *evlist); ...@@ -201,7 +201,7 @@ u64 __evlist__combined_sample_type(struct evlist *evlist);
u64 evlist__combined_sample_type(struct evlist *evlist); u64 evlist__combined_sample_type(struct evlist *evlist);
u64 evlist__combined_branch_type(struct evlist *evlist); u64 evlist__combined_branch_type(struct evlist *evlist);
bool evlist__sample_id_all(struct evlist *evlist); bool evlist__sample_id_all(struct evlist *evlist);
u16 perf_evlist__id_hdr_size(struct evlist *evlist); u16 evlist__id_hdr_size(struct evlist *evlist);
int evlist__parse_sample(struct evlist *evlist, union perf_event *event, struct perf_sample *sample); int evlist__parse_sample(struct evlist *evlist, union perf_event *event, struct perf_sample *sample);
int evlist__parse_sample_timestamp(struct evlist *evlist, union perf_event *event, u64 *timestamp); int evlist__parse_sample_timestamp(struct evlist *evlist, union perf_event *event, u64 *timestamp);
......
...@@ -2275,9 +2275,7 @@ static struct evsel *evlist__find_by_index(struct evlist *evlist, int idx) ...@@ -2275,9 +2275,7 @@ static struct evsel *evlist__find_by_index(struct evlist *evlist, int idx)
return NULL; return NULL;
} }
static void static void evlist__set_event_name(struct evlist *evlist, struct evsel *event)
perf_evlist__set_event_name(struct evlist *evlist,
struct evsel *event)
{ {
struct evsel *evsel; struct evsel *evsel;
...@@ -2312,7 +2310,7 @@ process_event_desc(struct feat_fd *ff, void *data __maybe_unused) ...@@ -2312,7 +2310,7 @@ process_event_desc(struct feat_fd *ff, void *data __maybe_unused)
} }
for (evsel = events; evsel->core.attr.size; evsel++) for (evsel = events; evsel->core.attr.size; evsel++)
perf_evlist__set_event_name(session->evlist, evsel); evlist__set_event_name(session->evlist, evsel);
if (!session->data->is_pipe) if (!session->data->is_pipe)
free_event_desc(events); free_event_desc(events);
...@@ -3765,8 +3763,7 @@ static int evsel__prepare_tracepoint_event(struct evsel *evsel, struct tep_handl ...@@ -3765,8 +3763,7 @@ static int evsel__prepare_tracepoint_event(struct evsel *evsel, struct tep_handl
return 0; return 0;
} }
static int perf_evlist__prepare_tracepoint_events(struct evlist *evlist, static int evlist__prepare_tracepoint_events(struct evlist *evlist, struct tep_handle *pevent)
struct tep_handle *pevent)
{ {
struct evsel *pos; struct evsel *pos;
...@@ -3881,8 +3878,7 @@ int perf_session__read_header(struct perf_session *session) ...@@ -3881,8 +3878,7 @@ int perf_session__read_header(struct perf_session *session)
perf_header__process_sections(header, fd, &session->tevent, perf_header__process_sections(header, fd, &session->tevent,
perf_file_section__process); perf_file_section__process);
if (perf_evlist__prepare_tracepoint_events(session->evlist, if (evlist__prepare_tracepoint_events(session->evlist, session->tevent.pevent))
session->tevent.pevent))
goto out_delete_evlist; goto out_delete_evlist;
return 0; return 0;
...@@ -4103,8 +4099,7 @@ int perf_event__process_tracing_data(struct perf_session *session, ...@@ -4103,8 +4099,7 @@ int perf_event__process_tracing_data(struct perf_session *session,
return -1; return -1;
} }
perf_evlist__prepare_tracepoint_events(session->evlist, evlist__prepare_tracepoint_events(session->evlist, session->tevent.pevent);
session->tevent.pevent);
return size_read + padding; return size_read + padding;
} }
......
...@@ -135,7 +135,7 @@ static int perf_session__open(struct perf_session *session) ...@@ -135,7 +135,7 @@ static int perf_session__open(struct perf_session *session)
void perf_session__set_id_hdr_size(struct perf_session *session) void perf_session__set_id_hdr_size(struct perf_session *session)
{ {
u16 id_hdr_size = perf_evlist__id_hdr_size(session->evlist); u16 id_hdr_size = evlist__id_hdr_size(session->evlist);
machines__set_id_hdr_size(&session->machines, id_hdr_size); machines__set_id_hdr_size(&session->machines, id_hdr_size);
} }
......
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