tracing: implement trace_clock_*() APIs
authorIngo Molnar <mingo@elte.hu>
Thu, 26 Feb 2009 17:47:11 +0000 (18:47 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 26 Feb 2009 17:44:06 +0000 (18:44 +0100)
commit14131f2f98ac350ee9e73faed916d2238a8b6a0d
treebf490d104276142e914f1245bbc9f44cb0d2bc9b
parent6409c4da289d6905f7ae2bd0630438368439bda2
tracing: implement trace_clock_*() APIs

Impact: implement new tracing timestamp APIs

Add three trace clock variants, with differing scalability/precision
tradeoffs:

 -   local: CPU-local trace clock
 -  medium: scalable global clock with some jitter
 -  global: globally monotonic, serialized clock

Make the ring-buffer use the local trace clock internally.

Acked-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/trace_clock.h [new file with mode: 0644]
kernel/trace/Makefile
kernel/trace/ring_buffer.c
kernel/trace/trace_clock.c [new file with mode: 0644]