Skip to content

Commit f376bf5

Browse files
committed
tracing: Remove sysprof ftrace plugin
The sysprof ftrace plugin doesn't seem to be seriously used somewhere. There is a branch in the sysprof tree that makes an interface to it, but the real sysprof tool uses either its own module or perf events. Drop the sysprof ftrace plugin then, as it's mostly useless. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Acked-by: Soeren Sandmann <sandmann@daimi.au.dk> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Ingo Molnar <mingo@elte.hu> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Li Zefan <lizf@cn.fujitsu.com>
1 parent cc5edb0 commit f376bf5

6 files changed

Lines changed: 0 additions & 378 deletions

File tree

‎kernel/trace/Kconfig‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -194,15 +194,6 @@ config PREEMPT_TRACER
194194
enabled. This option and the irqs-off timing option can be
195195
used together or separately.)
196196

197-
config SYSPROF_TRACER
198-
bool "Sysprof Tracer"
199-
depends on X86
200-
select GENERIC_TRACER
201-
select CONTEXT_SWITCH_TRACER
202-
help
203-
This tracer provides the trace needed by the 'Sysprof' userspace
204-
tool.
205-
206197
config SCHED_TRACER
207198
bool "Scheduling Latency Tracer"
208199
select GENERIC_TRACER

‎kernel/trace/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ obj-$(CONFIG_TRACING) += trace_output.o
3030
obj-$(CONFIG_TRACING) += trace_stat.o
3131
obj-$(CONFIG_TRACING) += trace_printk.o
3232
obj-$(CONFIG_CONTEXT_SWITCH_TRACER) += trace_sched_switch.o
33-
obj-$(CONFIG_SYSPROF_TRACER) += trace_sysprof.o
3433
obj-$(CONFIG_FUNCTION_TRACER) += trace_functions.o
3534
obj-$(CONFIG_IRQSOFF_TRACER) += trace_irqsoff.o
3635
obj-$(CONFIG_PREEMPT_TRACER) += trace_irqsoff.o

‎kernel/trace/trace.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4354,9 +4354,6 @@ static __init int tracer_init_debugfs(void)
43544354
trace_create_file("dyn_ftrace_total_info", 0444, d_tracer,
43554355
&ftrace_update_tot_cnt, &tracing_dyn_info_fops);
43564356
#endif
4357-
#ifdef CONFIG_SYSPROF_TRACER
4358-
init_tracer_sysprof_debugfs(d_tracer);
4359-
#endif
43604357

43614358
create_trace_options_dir();
43624359

‎kernel/trace/trace.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,6 @@ struct dentry *trace_create_file(const char *name,
296296
const struct file_operations *fops);
297297

298298
struct dentry *tracing_init_dentry(void);
299-
void init_tracer_sysprof_debugfs(struct dentry *d_tracer);
300299

301300
struct ring_buffer_event;
302301

@@ -428,8 +427,6 @@ extern int trace_selftest_startup_nop(struct tracer *trace,
428427
struct trace_array *tr);
429428
extern int trace_selftest_startup_sched_switch(struct tracer *trace,
430429
struct trace_array *tr);
431-
extern int trace_selftest_startup_sysprof(struct tracer *trace,
432-
struct trace_array *tr);
433430
extern int trace_selftest_startup_branch(struct tracer *trace,
434431
struct trace_array *tr);
435432
#endif /* CONFIG_FTRACE_STARTUP_TEST */

‎kernel/trace/trace_selftest.c‎

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -690,38 +690,6 @@ trace_selftest_startup_sched_switch(struct tracer *trace, struct trace_array *tr
690690
}
691691
#endif /* CONFIG_CONTEXT_SWITCH_TRACER */
692692

693-
#ifdef CONFIG_SYSPROF_TRACER
694-
int
695-
trace_selftest_startup_sysprof(struct tracer *trace, struct trace_array *tr)
696-
{
697-
unsigned long count;
698-
int ret;
699-
700-
/* start the tracing */
701-
ret = tracer_init(trace, tr);
702-
if (ret) {
703-
warn_failed_init_tracer(trace, ret);
704-
return ret;
705-
}
706-
707-
/* Sleep for a 1/10 of a second */
708-
msleep(100);
709-
/* stop the tracing. */
710-
tracing_stop();
711-
/* check the trace buffer */
712-
ret = trace_test_buffer(tr, &count);
713-
trace->reset(tr);
714-
tracing_start();
715-
716-
if (!ret && !count) {
717-
printk(KERN_CONT ".. no entries found ..");
718-
ret = -1;
719-
}
720-
721-
return ret;
722-
}
723-
#endif /* CONFIG_SYSPROF_TRACER */
724-
725693
#ifdef CONFIG_BRANCH_TRACER
726694
int
727695
trace_selftest_startup_branch(struct tracer *trace, struct trace_array *tr)

0 commit comments

Comments
 (0)