linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] force absolute timestamp trace option
@ 2020-06-18 22:15 Korben Rusek
  2020-06-18 22:15 ` [PATCH 1/2] Add force-abs-timestamp " Korben Rusek
  2020-06-18 22:15 ` [PATCH 2/2] tests for absolute timestamp Korben Rusek
  0 siblings, 2 replies; 3+ messages in thread
From: Korben Rusek @ 2020-06-18 22:15 UTC (permalink / raw)
  To: Steven Rostedt, Ingo Molnar, Jonathan Corbet
  Cc: Peter Shier, linux-doc, linux-kernel, jbehmer, franksie, Korben Rusek

Normally a data event includes the delta time between itself and
the previous data event. But if a write interrupts another write
then the event cannot check the timestamp of the previous event
and so it uses a delta of 0.

Adds a new trace option: force-abs-timestamp. When this is on
each event is proceeded by an absolute timestamp event.

This follows from a discussion between jbehmer@google.com
and Steven Rostedt found here:

https://lkml.org/lkml/2019/5/24/710

Korben Rusek (2):
  Add force-abs-timestamp trace option.
  tests for absolute timestamp

 Documentation/trace/ftrace.rst                |   5 +
 kernel/trace/trace.c                          |   4 +
 kernel/trace/trace.h                          |   1 +
 tools/testing/selftests/Makefile              |   1 +
 tools/testing/selftests/timestamp/Makefile    |  25 +++
 tools/testing/selftests/timestamp/abs-test.sh | 156 ++++++++++++++
 .../selftests/timestamp/abs-timestamp.c       | 198 ++++++++++++++++++
 7 files changed, 390 insertions(+)
 create mode 100644 tools/testing/selftests/timestamp/Makefile
 create mode 100644 tools/testing/selftests/timestamp/abs-test.sh
 create mode 100644 tools/testing/selftests/timestamp/abs-timestamp.c

-- 
2.27.0.290.gba653c62da-goog


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-06-18 22:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-18 22:15 [PATCH 0/2] force absolute timestamp trace option Korben Rusek
2020-06-18 22:15 ` [PATCH 1/2] Add force-abs-timestamp " Korben Rusek
2020-06-18 22:15 ` [PATCH 2/2] tests for absolute timestamp Korben Rusek

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).