summaryrefslogtreecommitdiffstats
path: root/Documentation/trace
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@linux.intel.com>2018-01-15 21:51:41 -0500
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2018-03-10 16:05:51 -0500
commit2c1ea60b195da6c4661ec5e4d61f68b8b34e113b (patch)
tree73c462753b91be9301b6e7ddcef1439e53285e22 /Documentation/trace
parentdc4e2801d400b0346fb281ce9cf010d611e2243c (diff)
tracing: Add timestamp_mode trace file
Add a new option flag indicating whether or not the ring buffer is in 'absolute timestamp' mode. Currently this is only set/unset by hist triggers that make use of a common_timestamp. As such, there's no reason to make this writeable for users - its purpose is only to allow users to determine unequivocally whether or not the ring buffer is in that mode (although absolute timestamps can coexist with the normal delta timestamps, when the ring buffer is in absolute mode, timestamps written while absolute mode is in effect take up more space in the buffer, and are not as efficient). Link: http://lkml.kernel.org/r/e8aa7b1cde1cf15014e66545d06ac6ef2ebba456.1516069914.git.tom.zanussi@linux.intel.com Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'Documentation/trace')
-rw-r--r--Documentation/trace/ftrace.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/Documentation/trace/ftrace.txt b/Documentation/trace/ftrace.txt
index d4601df6e72e..54213e5c23f6 100644
--- a/Documentation/trace/ftrace.txt
+++ b/Documentation/trace/ftrace.txt
@@ -539,6 +539,30 @@ of ftrace. Here is a list of some of the key files:
539 539
540 See events.txt for more information. 540 See events.txt for more information.
541 541
542 timestamp_mode:
543
544 Certain tracers may change the timestamp mode used when
545 logging trace events into the event buffer. Events with
546 different modes can coexist within a buffer but the mode in
547 effect when an event is logged determines which timestamp mode
548 is used for that event. The default timestamp mode is
549 'delta'.
550
551 Usual timestamp modes for tracing:
552
553 # cat timestamp_mode
554 [delta] absolute
555
556 The timestamp mode with the square brackets around it is the
557 one in effect.
558
559 delta: Default timestamp mode - timestamp is a delta against
560 a per-buffer timestamp.
561
562 absolute: The timestamp is a full timestamp, not a delta
563 against some other value. As such it takes up more
564 space and is less efficient.
565
542 hwlat_detector: 566 hwlat_detector:
543 567
544 Directory for the Hardware Latency Detector. 568 Directory for the Hardware Latency Detector.