perf tools: Factor out thread__set_guest_comm()
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 17 May 2022 13:10:07 +0000 (16:10 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 23 May 2022 13:18:27 +0000 (10:18 -0300)
commitc98e064d540cf88ccd7f9d20b0e1c1bbe5f82810
tree885fbe04a3338a7ae0e458ec199a8f8a4ed1ad57
parenta088031c4998297c86a06d925cc0f38508205950
perf tools: Factor out thread__set_guest_comm()

Factor out thread__set_guest_comm() so it can be reused.

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-3-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/machine.c