perf machine: Factor out machines__find_guest()
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 18 Feb 2021 09:57:55 +0000 (11:57 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 18 Feb 2021 19:14:14 +0000 (16:14 -0300)
commitfcda5ff711d9ddb7a92fff38b2cc153be8123c0e
tree5141bb8f61b510a103e4713f0fb31d28d98711e2
parent80a038860b5ca3aa864756ad6bfe1af5ac5839b0
perf machine: Factor out machines__find_guest()

Factor out machines__find_guest() so it can be re-used.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Andi Kleen <ak@linux.intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: https://lore.kernel.org/r/20210218095801.19576-6-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/machine.c
tools/perf/util/machine.h
tools/perf/util/session.c