aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2021-04-30 10:03:05 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-05-12 12:43:11 -0300
commit0fc9d338944254561289e8639ac05ebf72b4b082 (patch)
treea37d389d349b3950e94f739ec25f28e6f1760b99 /tools/perf/util/trace-event-scripting.c
parent335358cc3090d85793c663a625fa1c9195b8670e (diff)
downloadlinux-0fc9d338944254561289e8639ac05ebf72b4b082.tar.gz
linux-0fc9d338944254561289e8639ac05ebf72b4b082.tar.bz2
linux-0fc9d338944254561289e8639ac05ebf72b4b082.zip
perf intel-pt: Add a tree for VMCS information
Even when VMX TSC Offset is not changing (during perf record), different virtual machines can have different TSC Offsets. There is a Virtual Machine Control Structure (VMCS) for each virtual CPU, the address of which is reported to Intel PT in the VMCS packet. We do not know which VMCS belongs to which virtual machine, so use a tree to keep track of VMCS information. Then the decoder will be able to use the current VMCS value to look up the current TSC Offset. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Reviewed-by: Andi Kleen <ak@linux.intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: https://lore.kernel.org/r/20210430070309.17624-9-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions