Skip to content

trace-cmd: Fix up kvm time synchronization

Steven Rostedt linux-trace-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4trace-cmd kvm timesync: Use stat() in kvm_scaling_check_vm_cpu()lib/trace-cmd/trace-timesync-kvm.c+3 -30 replies
2/4trace-cmd kvm timesync: Check for one valid VMlib/trace-cmd/trace-timesync-kvm.c+36 -100 replies
3/4trace-cmd record: Set the proper role when connected to a proxytracecmd/trace-record.c+5 -10 replies
4/4trace-cmd: Mount debugfs if needed for KVM dataMakefile lib/trace-cmd/trace-timesync-kvm.c+36 -130 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] trace-cmd: Fix up kvm time synchronization

From: "Steven Rostedt (Google)" <[email protected]>

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(-)
Signature · 1 line
2.35.1