[PATCH] tracing: Export tracing_start() and tracing_stop()
From: Vincent Whitchurch
Date: Wed Jun 02 2021 - 04:01:55 EST
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@xxxxxxxx>
---
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