tracing: deprecate tracing_is_enabled function
Subsystems (2)
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.
Signed-off-by zhangwei(Jovi) <[email protected]>
--- 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
@@ -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
@@ -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
@@ -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
@@ -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