perf intel-pt: Support decoding of guest kernel
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 18 Feb 2021 09:57:57 +0000 (11:57 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 18 Feb 2021 19:14:49 +0000 (16:14 -0300)
commit6e86bfdc4a600accec9f246aab655c5fbf4309c3
treee959c6d38c515b87508a3966fdfeb5a614858153
parent3035cb6cbd2d62a764fa451ed9534eafdd0b446c
perf intel-pt: Support decoding of guest kernel

The guest kernel can be found from any guest thread belonging to the guest
machine. The guest machine is associated with the current host process pid.
An idle thread (pid=tid=0) is created as a vehicle from which to find the
guest kernel map.

Decoding guest user space is not supported.

Synthesized samples just need the cpumode set for the guest.

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