linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Tzvetomir Stoyanov <tz.stoyanov@gmail.com>
Cc: Linux Trace Devel <linux-trace-devel@vger.kernel.org>,
	Dario Faggioli <dfaggioli@suse.com>
Subject: Re: Clock sync priorities
Date: Thu, 11 Mar 2021 09:53:54 -0500	[thread overview]
Message-ID: <20210311095354.19bfbe1f@gandalf.local.home> (raw)
In-Reply-To: <20210311094401.7c6bf259@gandalf.local.home>

On Thu, 11 Mar 2021 09:44:01 -0500
Steven Rostedt <rostedt@goodmis.org> wrote:

> Dario, feel free to comment on this as well. The host-guest is the
> information stored in each guest file that tells it how its TSC matches the
> host (if -C is not used in the record). The ts2nsecs is done on the host
> where it reads the perf data to find out how the kernels converts the TSC
> to nanoseconds, and this information is stored in each trace.dat file (host
> and guest). This email is about how those will affect the current options
> listed above.

Correction, it's the ts2nsecs that is not done if -C is specified on the
record command line. The host / guest is done if the two can agree on a
protocol.

If -C is not specified, and the host knows exactly how the guest TSC is
set, and it has information (from perf) on how to convert TSC to
nanoseconds, then it will use the TSC clock by default and place the
information needed to convert TSC to nanoseconds in each trace.dat file.

-- Steve

  reply	other threads:[~2021-03-11 14:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-11 14:44 Clock sync priorities Steven Rostedt
2021-03-11 14:53 ` Steven Rostedt [this message]
2021-03-11 14:55 ` Tzvetomir Stoyanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210311095354.19bfbe1f@gandalf.local.home \
    --to=rostedt@goodmis.org \
    --cc=dfaggioli@suse.com \
    --cc=linux-trace-devel@vger.kernel.org \
    --cc=tz.stoyanov@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).