mbox series

[0/2] trace-cmd: Fix clock setting of agent proxy

Message ID 20220524015028.260238-1-rostedt@goodmis.org (mailing list archive)
Headers show
Series trace-cmd: Fix clock setting of agent proxy | expand

Message

Steven Rostedt May 24, 2022, 1:50 a.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

trace-cmd record does not set its clock to TSC if it connects to a agent
proxy, when it should. This breaks the synchronization. It works if the user
manually sets the clock to TSC before running the record, but the user
should not need to do that.

Also, if the TSC2NSEC option is set, then print the timing out in seconds
(with fractions) instead of the time stamp in nanoseconcds.

Steven Rostedt (Google) (2):
  trace-cmd library: Keep USECS flag if TSC multiplier is set
  trace-cmd record: Set clock to TSC when connecting to a proxy with kvm

 lib/trace-cmd/trace-input.c |  6 ++++++
 tracecmd/trace-record.c     | 13 +++++++++++++
 2 files changed, 19 insertions(+)