diff options
| author | Oleg Nesterov <oleg@redhat.com> | 2014-07-23 15:35:01 -0400 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2014-11-11 12:42:23 -0500 |
| commit | 632537256e9f969a188cc4d0159e0027a459d3e7 (patch) | |
| tree | 1a7e471659f99c90e176447bc98ba41768e67b3b /kernel/trace | |
| parent | 4fd3279b48605ae3ea509b9b2c02e46aa0975930 (diff) | |
tracing: Kill tracing_{start,stop}_sched_switch_record() and tracing_sched_switch_assign_trace()
tracing_{start,stop}_sched_switch_record() have no callers since
87d80de2800d "tracing: Remove obsolete sched_switch tracer".
The last caller of tracing_sched_switch_assign_trace() was removed
by 30dbb20e68e6 "tracing: Remove boot tracer".
Link: http://lkml.kernel.org/p/20140723193501.GA30214@redhat.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace')
| -rw-r--r-- | kernel/trace/trace.h | 3 | ||||
| -rw-r--r-- | kernel/trace/trace_sched_switch.c | 48 |
2 files changed, 0 insertions, 51 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 385391fb1d3b..a3a82d5f25dc 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
| @@ -597,9 +597,6 @@ void set_graph_array(struct trace_array *tr); | |||
| 597 | 597 | ||
| 598 | void tracing_start_cmdline_record(void); | 598 | void tracing_start_cmdline_record(void); |
| 599 | void tracing_stop_cmdline_record(void); | 599 | void tracing_stop_cmdline_record(void); |
| 600 | void tracing_sched_switch_assign_trace(struct trace_array *tr); | ||
| 601 | void tracing_stop_sched_switch_record(void); | ||
| 602 | void tracing_start_sched_switch_record(void); | ||
| 603 | int register_tracer(struct tracer *type); | 600 | int register_tracer(struct tracer *type); |
| 604 | int is_tracing_stopped(void); | 601 | int is_tracing_stopped(void); |
| 605 | 602 | ||
diff --git a/kernel/trace/trace_sched_switch.c b/kernel/trace/trace_sched_switch.c index 3f34dc9b40f3..3b60301c59d2 100644 --- a/kernel/trace/trace_sched_switch.c +++ b/kernel/trace/trace_sched_switch.c | |||
| @@ -197,51 +197,3 @@ void tracing_stop_cmdline_record(void) | |||
| 197 | { | 197 | { |
| 198 | tracing_stop_sched_switch(); | 198 | tracing_stop_sched_switch(); |
| 199 | } | 199 | } |
| 200 | |||
| 201 | /** | ||
| 202 | * tracing_start_sched_switch_record - start tracing context switches | ||
| 203 | * | ||
| 204 | * Turns on context switch tracing for a tracer. | ||
| 205 | */ | ||
| 206 | void tracing_start_sched_switch_record(void) | ||
| 207 | { | ||
| 208 | if (unlikely(!ctx_trace)) { | ||
| 209 | WARN_ON(1); | ||
| 210 | return; | ||
| 211 | } | ||
| 212 | |||
| 213 | tracing_start_sched_switch(); | ||
| 214 | |||
| 215 | mutex_lock(&sched_register_mutex); | ||
| 216 | tracer_enabled++; | ||
| 217 | mutex_unlock(&sched_register_mutex); | ||
| 218 | } | ||
| 219 | |||
| 220 | /** | ||
| 221 | * tracing_stop_sched_switch_record - start tracing context switches | ||
| 222 | * | ||
| 223 | * Turns off context switch tracing for a tracer. | ||
| 224 | */ | ||
| 225 | void tracing_stop_sched_switch_record(void) | ||
| 226 | { | ||
| 227 | mutex_lock(&sched_register_mutex); | ||
| 228 | tracer_enabled--; | ||
| 229 | WARN_ON(tracer_enabled < 0); | ||
| 230 | mutex_unlock(&sched_register_mutex); | ||
| 231 | |||
| 232 | tracing_stop_sched_switch(); | ||
| 233 | } | ||
| 234 | |||
| 235 | /** | ||
| 236 | * tracing_sched_switch_assign_trace - assign a trace array for ctx switch | ||
| 237 | * @tr: trace array pointer to assign | ||
| 238 | * | ||
| 239 | * Some tracers might want to record the context switches in their | ||
| 240 | * trace. This function lets those tracers assign the trace array | ||
| 241 | * to use. | ||
| 242 | */ | ||
| 243 | void tracing_sched_switch_assign_trace(struct trace_array *tr) | ||
| 244 | { | ||
| 245 | ctx_trace = tr; | ||
| 246 | } | ||
| 247 | |||
