tracing: Add "uptime" trace clock that uses jiffies
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Thu, 14 Mar 2013 17:13:45 +0000 (13:13 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 15 Mar 2013 04:36:09 +0000 (00:36 -0400)
commit8aacf017b065a805d27467843490c976835eb4a5
tree3e3ee23502cf2cc6d02baa1f7625b1ef16611eda
parent328df4759c03e2c3e7429cc6cb0e180c38f32063
tracing: Add "uptime" trace clock that uses jiffies

Add a simple trace clock called "uptime" for those that are
interested in the uptime of the trace. It uses jiffies as that's
the safest method, as other uptime clocks grab seq locks, which could
cause a deadlock if taken from an event or function tracer.

Requested-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/trace_clock.h
kernel/trace/trace.c
kernel/trace/trace_clock.c