]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Let tracing_snapshot() be used by modules but not NMI
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Sat, 9 Mar 2013 05:56:08 +0000 (00:56 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 15 Mar 2013 04:35:57 +0000 (00:35 -0400)
commit72be3c1318717f760412b3a193a617f178e73354
tree2e6ca7c130fb6420ba955072275218c7ec287511
parent7a54943687693796bd78ef8280e5055bae8c5d80
tracing: Let tracing_snapshot() be used by modules but not NMI

Add EXPORT_SYMBOL_GPL() to let the tracing_snapshot() functions be
called from modules.

Also add a test to see if the snapshot was called from NMI context
and just warn in the tracing buffer if so, and return.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c