From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx> Fix the kvm time synchronization so that it works with the agent proxy. That includes using "stat()" instead of just reading the content of the file to see if they exist. Have the kvm time sync functions test for a valid VM instead of just seeing if there are no failures, as no VMs or VCPUs would pass when it should not. Set the proper role for the agent proxy. Finally, mount the debugfs file system if it is not already mounted, otherwise it will say that KVM time synchronization is not supported when it actually is. Steven Rostedt (Google) (4): trace-cmd kvm timesync: Use stat() in kvm_scaling_check_vm_cpu() trace-cmd kvm timesync: Check for one valid VM trace-cmd record: Set the proper role when connected to a proxy trace-cmd: Mount debugfs if needed for KVM data Makefile | 2 +- lib/trace-cmd/trace-timesync-kvm.c | 99 ++++++++++++++++++++++-------- tracecmd/trace-record.c | 6 +- 3 files changed, 80 insertions(+), 27 deletions(-) -- 2.35.1