perf intel-pt: Split VM-Entry and VM-Exit branches
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 18 Feb 2021 09:58:00 +0000 (11:58 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 18 Feb 2021 19:15:38 +0000 (16:15 -0300)
commit19854e45b39a8b6b9ba4f33f07750ca9891572cb
tree5ea5bdc156eb03969037f788cfde7b3d036edfbd
parent695fc4510615f8db40ebaf7a2c011f0a594b5f77
perf intel-pt: Split VM-Entry and VM-Exit branches

Events record a single cpumode so the tools cannot handle a branch from
the host machine to a virtual machine, or vice versa. Split it in two so
that each branch can have a different cpumode.

  E.g. host ip -> guest ip

  becomes: host ip -> 0
      0 -> guest ip

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