Commit c7b84eca authored by Steven Rostedt's avatar Steven Rostedt Committed by Steven Rostedt
Browse files

tracing: Remove unused function unregister_tracer()

The function register_tracer() is only used by kernel core code,
that never needs to remove the tracer. As trace_events have become
the main way to add new tracing to the kernel, the need to
unregister a tracer has diminished. Remove the unused function
unregister_tracer(). If a need arises where we need it, then we
can always add it back.
Signed-off-by: default avatarSteven Rostedt <>
parent 15075cac
...@@ -882,32 +882,6 @@ int register_tracer(struct tracer *type) ...@@ -882,32 +882,6 @@ int register_tracer(struct tracer *type)
return ret; return ret;
} }
void unregister_tracer(struct tracer *type)
struct tracer **t;
for (t = &trace_types; *t; t = &(*t)->next) {
if (*t == type)
goto found;
pr_info("Tracer %s not registered\n", type->name);
goto out;
*t = (*t)->next;
if (type == current_trace && tracer_enabled) {
tracer_enabled = 0;
if (current_trace->stop)
current_trace = &nop_trace;
void tracing_reset(struct trace_array *tr, int cpu) void tracing_reset(struct trace_array *tr, int cpu)
{ {
struct ring_buffer *buffer = tr->buffer; struct ring_buffer *buffer = tr->buffer;
...@@ -410,7 +410,6 @@ void tracing_sched_switch_assign_trace(struct trace_array *tr); ...@@ -410,7 +410,6 @@ void tracing_sched_switch_assign_trace(struct trace_array *tr);
void tracing_stop_sched_switch_record(void); void tracing_stop_sched_switch_record(void);
void tracing_start_sched_switch_record(void); void tracing_start_sched_switch_record(void);
int register_tracer(struct tracer *type); int register_tracer(struct tracer *type);
void unregister_tracer(struct tracer *type);
int is_tracing_stopped(void); int is_tracing_stopped(void);
enum trace_file_type { enum trace_file_type {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment