tracing: Export tracing clock functions
authorJerry Snitselaar <jsnitsel@redhat.com>
Thu, 30 Apr 2015 15:10:24 +0000 (08:10 -0700)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 12 May 2015 19:56:57 +0000 (15:56 -0400)
commit7e255d346c12888f7cce4b89a03a5fe5e9196ab1
treeb87449fa2978ae7d1975b566e1936784a57cd36b
parent755a27e7e4c817dd51ade41668b380f26026899c
tracing: Export tracing clock functions

Critical tracepoint hooks should never call anything that takes a lock,
so they are unable to call getrawmonotonic() or ktime_get().

Export the rest of the tracing clock functions so can be used in
tracepoint hooks.

Background: We have a customer that adds their own module and registers
a tracepoint hook to sched_wakeup. They were using ktime_get() for a
time source, but it grabs a seq lock and caused a deadlock to occur.

Link: http://lkml.kernel.org/r/1430406624-22609-1-git-send-email-jsnitsel@redhat.com
Signed-off-by: Jerry Snitselaar <jsnitsel@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_clock.c
This page took 0.02479 seconds and 5 git commands to generate.