From: "Steven Rostedt (VMware)" <rostedt@xxxxxxxxxxx> Use tracing the wake-up and kvm-exit events to find the task that is owned by the given CID. Also, do the same to find the mappings of threads and the guest vCPUs. Changes since v3: - Remove unnecessary check of *cid < 0. Steven Rostedt (VMware) (2): trace-cmd: Find PID of host-guest task from tracing vsock connection trace-cmd: Trace timesync to find pids that map vCPUs tracecmd/include/trace-local.h | 2 + tracecmd/trace-record.c | 199 ++++++++++++++++++++++++++++- tracecmd/trace-vm.c | 227 ++++++++++++++++++++++++++++++++- 3 files changed, 426 insertions(+), 2 deletions(-) -- 2.29.2