aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2013-07-02 19:59:57 -0400
committerSteven Rostedt <rostedt@goodmis.org>2013-07-02 20:42:31 -0400
commit5280bcef91e706770cc1706eb97353e3513322b9 (patch)
tree9330be13eb4eb593fda56dd519228ffc015978ea /kernel/trace
parent11034ae9c20f4057a6127fc965906417978e69b2 (diff)
tracing: Make tracer_tracing_{off,on,is_on}() static
I have patches that will use tracer_tracing_on/off/is_on() in other files, but as they are not ready to be merged yet, and Fengguang Wu's sparse scripts pointed out that these functions were not declared anywhere, I'll make them static for now. When these functions are required to be used elsewhere, I'll remove the static then. Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/trace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 6d9bd9b43e43..48aceb8a0328 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -387,7 +387,7 @@ unsigned long trace_flags = TRACE_ITER_PRINT_PARENT | TRACE_ITER_PRINTK |
387 TRACE_ITER_GRAPH_TIME | TRACE_ITER_RECORD_CMD | TRACE_ITER_OVERWRITE | 387 TRACE_ITER_GRAPH_TIME | TRACE_ITER_RECORD_CMD | TRACE_ITER_OVERWRITE |
388 TRACE_ITER_IRQ_INFO | TRACE_ITER_MARKERS | TRACE_ITER_FUNCTION; 388 TRACE_ITER_IRQ_INFO | TRACE_ITER_MARKERS | TRACE_ITER_FUNCTION;
389 389
390void tracer_tracing_on(struct trace_array *tr) 390static void tracer_tracing_on(struct trace_array *tr)
391{ 391{
392 if (tr->trace_buffer.buffer) 392 if (tr->trace_buffer.buffer)
393 ring_buffer_record_on(tr->trace_buffer.buffer); 393 ring_buffer_record_on(tr->trace_buffer.buffer);
@@ -606,7 +606,7 @@ void tracing_snapshot_alloc(void)
606EXPORT_SYMBOL_GPL(tracing_snapshot_alloc); 606EXPORT_SYMBOL_GPL(tracing_snapshot_alloc);
607#endif /* CONFIG_TRACER_SNAPSHOT */ 607#endif /* CONFIG_TRACER_SNAPSHOT */
608 608
609void tracer_tracing_off(struct trace_array *tr) 609static void tracer_tracing_off(struct trace_array *tr)
610{ 610{
611 if (tr->trace_buffer.buffer) 611 if (tr->trace_buffer.buffer)
612 ring_buffer_record_off(tr->trace_buffer.buffer); 612 ring_buffer_record_off(tr->trace_buffer.buffer);
@@ -649,7 +649,7 @@ void disable_trace_on_warning(void)
649 * 649 *
650 * Shows real state of the ring buffer if it is enabled or not. 650 * Shows real state of the ring buffer if it is enabled or not.
651 */ 651 */
652int tracer_tracing_is_on(struct trace_array *tr) 652static int tracer_tracing_is_on(struct trace_array *tr)
653{ 653{
654 if (tr->trace_buffer.buffer) 654 if (tr->trace_buffer.buffer)
655 return ring_buffer_record_is_on(tr->trace_buffer.buffer); 655 return ring_buffer_record_is_on(tr->trace_buffer.buffer);