]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf1214ad0ba2c3b98916ad25700f126acffc1e33a
treee959c6d38c515b87508a3966fdfeb5a614858153
parentd660d514db8cee2489e57d3efa7b450a819d9754
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