perf tools: Add machine to machines back pointer
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 17 May 2022 13:10:06 +0000 (16:10 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 23 May 2022 13:18:06 +0000 (10:18 -0300)
commita088031c4998297c86a06d925cc0f38508205950
tree92dd5cccf3a4c3a6484193f23fe3a98a85e5bf6d
parent67322d13fe3043c81b54b7efa919b800e3d4374a
perf tools: Add machine to machines back pointer

When dealing with guest machines, it can be necessary to get a reference
to the host machine. Add a machines pointer to struct machine to make that
possible.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: kvm@vger.kernel.org
Link: https://lore.kernel.org/r/20220517131011.6117-2-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/machine.c
tools/perf/util/machine.h