perf intel-pt: Use guest pid/tid etc in guest samples
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 11 Jul 2022 09:32:17 +0000 (12:32 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 20 Jul 2022 14:09:04 +0000 (11:09 -0300)
commit98759cca8440ac157963352d3fe8cf93c0062df6
tree6429437e343344c23673cb9e1dc8156dc656e87f
parent61cd9135d09bd2e1d87bef7d8af37f00ce043312
perf intel-pt: Use guest pid/tid etc in guest samples

When decoding with guest sideband information, for VMX non-root (NR)
i.e. guest events, replace the host (hypervisor) pid/tid with guest values,
and provide also the new machine_pid and vcpu values.

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