Skip to content

Commit d8c4dee

Browse files
Joel Fernandesrostedt
authored andcommitted
tracing: Remove obsolete sched_switch tracer selftest
Since commit 87d80de ("tracing: Remove obsolete sched_switch tracer"), the sched_switch tracer selftest is no longer used. This patch removes the same. Link: http://lkml.kernel.org/r/[email protected] Cc: Ingo Molnar <[email protected]> Cc: [email protected] Signed-off-by: Joel Fernandes <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
1 parent 9e66317 commit d8c4dee

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

kernel/trace/trace.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,8 +738,6 @@ extern int trace_selftest_startup_wakeup(struct tracer *trace,
738738
struct trace_array *tr);
739739
extern int trace_selftest_startup_nop(struct tracer *trace,
740740
struct trace_array *tr);
741-
extern int trace_selftest_startup_sched_switch(struct tracer *trace,
742-
struct trace_array *tr);
743741
extern int trace_selftest_startup_branch(struct tracer *trace,
744742
struct trace_array *tr);
745743
/*

kernel/trace/trace_selftest.c

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,38 +1150,6 @@ trace_selftest_startup_wakeup(struct tracer *trace, struct trace_array *tr)
11501150
}
11511151
#endif /* CONFIG_SCHED_TRACER */
11521152

1153-
#ifdef CONFIG_CONTEXT_SWITCH_TRACER
1154-
int
1155-
trace_selftest_startup_sched_switch(struct tracer *trace, struct trace_array *tr)
1156-
{
1157-
unsigned long count;
1158-
int ret;
1159-
1160-
/* start the tracing */
1161-
ret = tracer_init(trace, tr);
1162-
if (ret) {
1163-
warn_failed_init_tracer(trace, ret);
1164-
return ret;
1165-
}
1166-
1167-
/* Sleep for a 1/10 of a second */
1168-
msleep(100);
1169-
/* stop the tracing. */
1170-
tracing_stop();
1171-
/* check the trace buffer */
1172-
ret = trace_test_buffer(&tr->trace_buffer, &count);
1173-
trace->reset(tr);
1174-
tracing_start();
1175-
1176-
if (!ret && !count) {
1177-
printk(KERN_CONT ".. no entries found ..");
1178-
ret = -1;
1179-
}
1180-
1181-
return ret;
1182-
}
1183-
#endif /* CONFIG_CONTEXT_SWITCH_TRACER */
1184-
11851153
#ifdef CONFIG_BRANCH_TRACER
11861154
int
11871155
trace_selftest_startup_branch(struct tracer *trace, struct trace_array *tr)

0 commit comments

Comments
 (0)