diff options
author | Adrian Hunter <[email protected]> | 2022-07-11 12:31:55 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2022-07-20 11:08:04 -0300 |
commit | 797efbc523b37de29dc533a8561d34b97deb42e4 (patch) | |
tree | 1fdfa09a245109903781b272162fa21acea03802 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | ff7a78c210ed90bed915df55cc56876d4151c5ac (diff) |
perf tools: Add guest_cpu to hypervisor threads
It is possible to know which guest machine was running at a point in time
based on the PID of the currently running host thread. That is, perf
identifies guest machines by the PID of the hypervisor.
To determine the guest CPU, put it on the hypervisor (QEMU) thread for
that VCPU.
This is done when processing the id_index which provides the necessary
information.
Signed-off-by: Adrian Hunter <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions