Skip to contentSkip to conversation

tracing: deprecate tracing_is_enabled function

PATCH In review zhangwei(Jovi) 1 participant 1 message Mar 11, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 10/13 tracing: deprecate tracing_is_enabled function

Below two commits removed tracing_enabled file, and make function tracing_is_enable equal to tracing_is_on.

commit(6752ab4): tracing: Deprecate tracing_enabled for tracing_on commit(0fb9656): tracing: Make tracing_enabled be equal to tracing_on

so we can deprecate old tracing_is_enabled function completely now.

No functionality change.

---
 kernel/trace/trace.c              |    7 +------
 kernel/trace/trace.h              |    1 -
 kernel/trace/trace_irqsoff.c      |    2 +-
 kernel/trace/trace_sched_wakeup.c |    2 +-
 4 files changed, 3 insertions(+), 9 deletions(-)
kernel/trace/trace.c +1 -6
index c7cc915..96c351a9 100644
@@ -227,11 +227,6 @@ static struct trace_array	max_tr;
 
 static DEFINE_PER_CPU(struct trace_array_cpu, max_tr_data);
 
-int tracing_is_enabled(void)
-{
-	return tracing_is_on();
-}
-
 /*
  * trace_buf_size is the size in bytes that is allocated
  * for a buffer. Note, the number of bytes is always rounded
@@ -3494,7 +3489,7 @@ static int tracing_wait_pipe(struct file *filp)
 		 *
 		 * iter->pos will be 0 if we haven't read anything.
 		 */
-		if (!tracing_is_enabled() && iter->pos)
+		if (!tracing_is_on() && iter->pos)
 			break;
 	}
 
kernel/trace/trace.h +0 -1
index 8489d83..4f2b7d8 100644
@@ -434,7 +434,6 @@ trace_buffer_iter(struct trace_iterator *iter, int cpu)
 }
 
 int tracer_init(struct tracer *t, struct trace_array *tr);
-int tracing_is_enabled(void);
 void tracing_reset(struct trace_array *tr, int cpu);
 void tracing_reset_online_cpus(struct trace_array *tr);
 void tracing_reset_current(int cpu);
kernel/trace/trace_irqsoff.c +1 -1
index 713a2ca..ca808ae 100644
@@ -538,7 +538,7 @@ static int start_irqsoff_tracer(struct trace_array *tr, int graph)
 		ret = register_ftrace_graph(&irqsoff_graph_return,
 					    &irqsoff_graph_entry);
 
-	if (!ret && tracing_is_enabled())
+	if (!ret && tracing_is_on())
 		tracer_enabled = 1;
 	else
 		tracer_enabled = 0;
kernel/trace/trace_sched_wakeup.c +1 -1
index 75aa97f..70629a2 100644
@@ -144,7 +144,7 @@ static int start_func_tracer(int graph)
 		ret = register_ftrace_graph(&wakeup_graph_return,
 					    &wakeup_graph_entry);
 
-	if (!ret && tracing_is_enabled())
+	if (!ret && tracing_is_on())
 		tracer_enabled = 1;
 	else
 		tracer_enabled = 0;
Signature · 1 line
1.7.9.7