Commit 3ccf8a7b authored by Arnaldo Carvalho de Melo's avatar Arnaldo Carvalho de Melo
Browse files

perf evlist: Use the right prefix for 'struct evlist' sample id lookup 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 fd643db5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2224,7 +2224,7 @@ static int print_event_with_time(struct perf_tool *tool,
{
	struct perf_script *script = container_of(tool, struct perf_script, tool);
	struct perf_session *session = script->session;
	struct evsel *evsel = perf_evlist__id2evsel(session->evlist, sample->id);
	struct evsel *evsel = evlist__id2evsel(session->evlist, sample->id);
	struct thread *thread = NULL;

	if (evsel && !evsel->core.attr.sample_id_all) {
+1 −1
Original line number Diff line number Diff line
@@ -1159,7 +1159,7 @@ static int deliver_event(struct ordered_events *qe,
		goto next_event;
	}

	evsel = perf_evlist__id2evsel(session->evlist, sample.id);
	evsel = evlist__id2evsel(session->evlist, sample.id);
	assert(evsel != NULL);

	if (event->header.type == PERF_RECORD_SAMPLE) {
+1 −1
Original line number Diff line number Diff line
@@ -3105,7 +3105,7 @@ static void trace__handle_event(struct trace *trace, union perf_event *event, st
		return;
	}

	evsel = perf_evlist__id2evsel(trace->evlist, sample->id);
	evsel = evlist__id2evsel(trace->evlist, sample->id);
	if (evsel == NULL) {
		fprintf(trace->output, "Unknown tp ID %" PRIu64 ", skipping...\n", sample->id);
		return;
+1 −1
Original line number Diff line number Diff line
@@ -133,7 +133,7 @@ int test__basic_mmap(struct test *test __maybe_unused, int subtest __maybe_unuse
		}

		err = -1;
		evsel = perf_evlist__id2evsel(evlist, sample.id);
		evsel = evlist__id2evsel(evlist, sample.id);
		if (evsel == NULL) {
			pr_debug("event with id %" PRIu64
				 " doesn't map to an evsel\n", sample.id);
+1 −1
Original line number Diff line number Diff line
@@ -133,7 +133,7 @@ static int process_sample_event(struct evlist *evlist,
		return -1;
	}

	evsel = perf_evlist__id2evsel(evlist, sample.id);
	evsel = evlist__id2evsel(evlist, sample.id);
	if (evsel == switch_tracking->switch_evsel) {
		next_tid = evsel__intval(evsel, &sample, "next_pid");
		prev_tid = evsel__intval(evsel, &sample, "prev_pid");
Loading