All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tracing: Export tracing_start() and tracing_stop()
@ 2021-06-02  8:01 Vincent Whitchurch
  2021-06-07  8:25 ` Christoph Hellwig
  0 siblings, 1 reply; 5+ messages in thread
From: Vincent Whitchurch @ 2021-06-02  8:01 UTC (permalink / raw)
  To: Steven Rostedt, Ingo Molnar; +Cc: kernel, Vincent Whitchurch, linux-kernel

tracing_stop() is very useful during hands-on debugging for getting the
trace to stop exactly when the problem is detected.  Export this to
modules.

Personally, I haven't yet found the need to use tracing_start() from
code since I usually start tracing via tracefs, but export that too for
symmetry since it may have its uses together with tracing_stop().

Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
---
 kernel/trace/trace.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index a21ef9cd2aae..5fa36f0705b7 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -2301,6 +2301,7 @@ void tracing_start(void)
  out:
 	raw_spin_unlock_irqrestore(&global_trace.start_lock, flags);
 }
+EXPORT_SYMBOL_GPL(tracing_start);
 
 static void tracing_start_tr(struct trace_array *tr)
 {
@@ -2366,6 +2367,7 @@ void tracing_stop(void)
  out:
 	raw_spin_unlock_irqrestore(&global_trace.start_lock, flags);
 }
+EXPORT_SYMBOL_GPL(tracing_stop);
 
 static void tracing_stop_tr(struct trace_array *tr)
 {
-- 
2.28.0


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

end of thread, other threads:[~2021-06-08 13:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-02  8:01 [PATCH] tracing: Export tracing_start() and tracing_stop() Vincent Whitchurch
2021-06-07  8:25 ` Christoph Hellwig
2021-06-07 13:14   ` Steven Rostedt
2021-06-08 12:59     ` Vincent Whitchurch
2021-06-08 13:24       ` Steven Rostedt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.