mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Carsten Emde <C.Emde@osadl.org>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Ingo Molnar <mingo@elte.hu>, Thomas Gleixner <tglx@linutronix.de>,
	LKML <linux-kernel@vger.kernel.org>,
	RT-users <linux-rt-users@vger.kernel.org>,
	Carsten Emde <C.Emde@osadl.org>
Subject: [PATCH 2/2] add-trace_clock-to-ftrace-docs.patch
Date: Sat, 26 Dec 2009 22:41:16 +0100	[thread overview]
Message-ID: <20091226214229.782692524@osadl.org> (raw)
In-Reply-To: <20091226214114.843059850@osadl.org>

[-- Attachment #1: add-trace_clock-to-ftrace-docs.patch --]
[-- Type: text/plain, Size: 1706 bytes --]

Add an explanation of the trace variable
trace_clock to the ftrace documentation.

Signed-off-by: Carsten Emde <C.Emde@osadl.org>

Index: linux-2.6.33-rc2/Documentation/trace/ftrace.txt
===================================================================
--- linux-2.6.33-rc2.orig/Documentation/trace/ftrace.txt
+++ linux-2.6.33-rc2/Documentation/trace/ftrace.txt
@@ -91,6 +91,33 @@ of ftrace. Here is a list of some of the
 	This file holds the output of the trace in a human
 	readable format (described below).
 
+  trace_clock:
+
+	Three different clocks are available for the tracer
+	timestamps, "local", "medium" and "global". For the
+	time being, however, the "medium" clock is disabled
+	in the source code and requires the line
+		{ trace_clock,		"medium" },
+	to be inserted in kernel/trace/trace.c between
+		{ trace_clock_local,	"local" },
+	and
+		{ trace_clock_global,	"global" },
+	- The "local" clock is the simplest and least coherent
+	tracing clock. It is useful for tracing that does not
+	cross to other CPUs nor does it go through idle events.
+	- The "medium" clock is a scalable global clock with
+	some jitter. It is not completely serialized, but not
+	completely incorrect when crossing CPUs either.
+	- The "global" clock is a globally monotonic, serialized
+	clock. It has a higher overhead than the "local" and the
+	"medium" trace clock but is still an order of magnitude
+	faster than a hardware clock based on the gettimeofday()
+	function would be.
+
+	The content of trace_clock displays the available tracer
+	clocks, the name of the currently selected clock is
+	surrounded by square brackets.
+
   trace_pipe:
 
 	The output is the same as the "trace" file but this


      parent reply	other threads:[~2009-12-26 22:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-26 21:41 [PATCH 0/2] tracing: Expand ftrace documentation Carsten Emde
2009-12-26 21:41 ` [PATCH 1/2] add-tracing_max_latency-may-not-be-worst-case-system-latency-to-ftrace-docs.patch Carsten Emde
2009-12-26 21:41 ` Carsten Emde [this message]

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=20091226214229.782692524@osadl.org \
    --to=c.emde@osadl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=rostedt@goodmis.org \
    --cc=tglx@linutronix.de \
    /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

all inboxes | Powered by JetHome®