Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

perf machine: Rename perf_event__preprocess_sample to machine__resolve

Since we only deal with fields in the passed struct perf_sample move
this method to struct machine, that is where the perf_sample fields
will be resolved to a struct addr_location, i.e. thread, map, symbol,
etc.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Hemant Kumar <hemant@linux.vnet.ibm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Cc: Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-a1ww2lbm2vbuqsv4p7ilubu9@git.kernel.org


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 473398a2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -94,7 +94,7 @@ static int process_sample_event(struct perf_tool *tool,
	struct addr_location al;
	int ret = 0;

	if (perf_event__preprocess_sample(event, machine, &al, sample) < 0) {
	if (machine__resolve(machine, &al, sample) < 0) {
		pr_warning("problem processing %d event, skipping it.\n",
			   event->header.type);
		return -1;
+1 −1
Original line number Diff line number Diff line
@@ -330,7 +330,7 @@ static int diff__process_sample_event(struct perf_tool *tool __maybe_unused,
	struct hists *hists = evsel__hists(evsel);
	int ret = -1;

	if (perf_event__preprocess_sample(event, machine, &al, sample) < 0) {
	if (machine__resolve(machine, &al, sample) < 0) {
		pr_warning("problem processing %d event, skipping it.\n",
			   event->header.type);
		return -1;
+1 −1
Original line number Diff line number Diff line
@@ -131,7 +131,7 @@ dump_raw_samples(struct perf_tool *tool,
	struct addr_location al;
	const char *fmt;

	if (perf_event__preprocess_sample(event, machine, &al, sample) < 0) {
	if (machine__resolve(machine, &al, sample) < 0) {
		fprintf(stderr, "problem processing %d event, skipping it.\n",
				event->header.type);
		return -1;
+1 −1
Original line number Diff line number Diff line
@@ -154,7 +154,7 @@ static int process_sample_event(struct perf_tool *tool,
	};
	int ret = 0;

	if (perf_event__preprocess_sample(event, machine, &al, sample) < 0) {
	if (machine__resolve(machine, &al, sample) < 0) {
		pr_debug("problem processing %d event, skipping it.\n",
			 event->header.type);
		return -1;
+1 −1
Original line number Diff line number Diff line
@@ -904,7 +904,7 @@ static int process_sample_event(struct perf_tool *tool,
		return 0;
	}

	if (perf_event__preprocess_sample(event, machine, &al, sample) < 0) {
	if (machine__resolve(machine, &al, sample) < 0) {
		pr_err("problem processing %d event, skipping it.\n",
		       event->header.type);
		return -1;
Loading