Skip to content

Commit 5d55046

Browse files
committed
tracing: Remove ksym tracer
The ksym (breakpoint) ftrace plugin has been superseded by perf tools that are much more poweful to use the cpu breakpoints. This tracer doesn't bring more feature. It has been deprecated for a while now, lets remove it. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Prasad <prasad@linux.vnet.ibm.com> Cc: Ingo Molnar <mingo@elte.hu>
1 parent 86a8c63 commit 5d55046

6 files changed

Lines changed: 0 additions & 606 deletions

File tree

‎kernel/trace/Kconfig‎

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -308,28 +308,6 @@ config BRANCH_TRACER
308308

309309
Say N if unsure.
310310

311-
config KSYM_TRACER
312-
bool "Trace read and write access on kernel memory locations"
313-
depends on HAVE_HW_BREAKPOINT
314-
select TRACING
315-
help
316-
This tracer helps find read and write operations on any given kernel
317-
symbol i.e. /proc/kallsyms.
318-
319-
config PROFILE_KSYM_TRACER
320-
bool "Profile all kernel memory accesses on 'watched' variables"
321-
depends on KSYM_TRACER
322-
help
323-
This tracer profiles kernel accesses on variables watched through the
324-
ksym tracer ftrace plugin. Depending upon the hardware, all read
325-
and write operations on kernel variables can be monitored for
326-
accesses.
327-
328-
The results will be displayed in:
329-
/debugfs/tracing/profile_ksym
330-
331-
Say N if unsure.
332-
333311
config STACK_TRACER
334312
bool "Trace max stack"
335313
depends on HAVE_FUNCTION_TRACER

‎kernel/trace/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ obj-$(CONFIG_EVENT_TRACING) += trace_event_perf.o
5353
endif
5454
obj-$(CONFIG_EVENT_TRACING) += trace_events_filter.o
5555
obj-$(CONFIG_KPROBE_EVENT) += trace_kprobe.o
56-
obj-$(CONFIG_KSYM_TRACER) += trace_ksym.o
5756
obj-$(CONFIG_EVENT_TRACING) += power-traces.o
5857

5958
libftrace-y := ftrace.o

‎kernel/trace/trace.h‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ enum trace_type {
3030
TRACE_GRAPH_ENT,
3131
TRACE_USER_STACK,
3232
TRACE_BLK,
33-
TRACE_KSYM,
3433

3534
__TRACE_LAST_TYPE,
3635
};
@@ -200,7 +199,6 @@ extern void __ftrace_bad_type(void);
200199
TRACE_GRAPH_ENT); \
201200
IF_ASSIGN(var, ent, struct ftrace_graph_ret_entry, \
202201
TRACE_GRAPH_RET); \
203-
IF_ASSIGN(var, ent, struct ksym_trace_entry, TRACE_KSYM);\
204202
__ftrace_bad_type(); \
205203
} while (0)
206204

@@ -361,8 +359,6 @@ int register_tracer(struct tracer *type);
361359
void unregister_tracer(struct tracer *type);
362360
int is_tracing_stopped(void);
363361

364-
extern int process_new_ksym_entry(char *ksymname, int op, unsigned long addr);
365-
366362
extern unsigned long nsecs_to_usecs(unsigned long nsecs);
367363

368364
extern unsigned long tracing_thresh;
@@ -436,8 +432,6 @@ extern int trace_selftest_startup_sysprof(struct tracer *trace,
436432
struct trace_array *tr);
437433
extern int trace_selftest_startup_branch(struct tracer *trace,
438434
struct trace_array *tr);
439-
extern int trace_selftest_startup_ksym(struct tracer *trace,
440-
struct trace_array *tr);
441435
#endif /* CONFIG_FTRACE_STARTUP_TEST */
442436

443437
extern void *head_page(struct trace_array_cpu *data);

‎kernel/trace/trace_entries.h‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -291,18 +291,3 @@ FTRACE_ENTRY(branch, trace_branch,
291291
__entry->func, __entry->file, __entry->correct)
292292
);
293293

294-
FTRACE_ENTRY(ksym_trace, ksym_trace_entry,
295-
296-
TRACE_KSYM,
297-
298-
F_STRUCT(
299-
__field( unsigned long, ip )
300-
__field( unsigned char, type )
301-
__array( char , cmd, TASK_COMM_LEN )
302-
__field( unsigned long, addr )
303-
),
304-
305-
F_printk("ip: %pF type: %d ksym_name: %pS cmd: %s",
306-
(void *)__entry->ip, (unsigned int)__entry->type,
307-
(void *)__entry->addr, __entry->cmd)
308-
);

0 commit comments

Comments
 (0)