perf session: Use sample->machine_pid to find guest machine
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 11 Jul 2022 09:31:57 +0000 (12:31 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 20 Jul 2022 14:08:08 +0000 (11:08 -0300)
commit635049099582e45be4720722919912ca113c823c
treeb6e333e8b6989e6b1df2024ff7b549bd2d40de08
parent3461b65da7d48c57080d40e6b545f1360f0b195b
perf session: Use sample->machine_pid to find guest machine

If machine_pid is set, use it to find the guest machine.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: kvm@vger.kernel.org
Link: https://lore.kernel.org/r/20220711093218.10967-15-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/session.c