Skip to content

Commit

Permalink
tracing: Remove tracepoint sample code
Browse files Browse the repository at this point in the history
The tracepoint sample code was used to teach developers how to
create their own tracepoints. But now the trace_events have been
added as a higher level that is used directly by developers today.

Only the trace_event code should use the tracepoint interface
directly and no new tracepoints should be added.

Besides, the example had a race condition with the use of the
 ->d_name.name dentry field, as pointed out by Al Viro.

Best just to remove the code so it wont be used by other developers.

Link: http://lkml.kernel.org/r/[email protected]

Cc: Al Viro <[email protected]>
Acked-by: Mathieu Desnoyers <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
  • Loading branch information
Steven Rostedt authored and rostedt committed Jan 25, 2013
1 parent b736f48 commit d75f717
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 182 deletions.
6 changes: 0 additions & 6 deletions samples/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ menuconfig SAMPLES

if SAMPLES

config SAMPLE_TRACEPOINTS
tristate "Build tracepoints examples -- loadable modules only"
depends on TRACEPOINTS && m
help
This build tracepoints example modules.

config SAMPLE_TRACE_EVENTS
tristate "Build trace_events examples -- loadable modules only"
depends on EVENT_TRACING && m
Expand Down
2 changes: 1 addition & 1 deletion samples/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Makefile for Linux samples code

obj-$(CONFIG_SAMPLES) += kobject/ kprobes/ tracepoints/ trace_events/ \
obj-$(CONFIG_SAMPLES) += kobject/ kprobes/ trace_events/ \
hw_breakpoint/ kfifo/ kdb/ hidraw/ rpmsg/ seccomp/
6 changes: 0 additions & 6 deletions samples/tracepoints/Makefile

This file was deleted.

11 changes: 0 additions & 11 deletions samples/tracepoints/tp-samples-trace.h

This file was deleted.

57 changes: 0 additions & 57 deletions samples/tracepoints/tracepoint-probe-sample.c

This file was deleted.

44 changes: 0 additions & 44 deletions samples/tracepoints/tracepoint-probe-sample2.c

This file was deleted.

57 changes: 0 additions & 57 deletions samples/tracepoints/tracepoint-sample.c

This file was deleted.

0 comments on commit d75f717

Please sign in to comment.