Skip to content

Commit d75f717

Browse files
Steven Rostedtrostedt
authored andcommitted
tracing: Remove tracepoint sample code
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]>
1 parent b736f48 commit d75f717

File tree

7 files changed

+1
-182
lines changed

7 files changed

+1
-182
lines changed

samples/Kconfig

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ menuconfig SAMPLES
55

66
if SAMPLES
77

8-
config SAMPLE_TRACEPOINTS
9-
tristate "Build tracepoints examples -- loadable modules only"
10-
depends on TRACEPOINTS && m
11-
help
12-
This build tracepoints example modules.
13-
148
config SAMPLE_TRACE_EVENTS
159
tristate "Build trace_events examples -- loadable modules only"
1610
depends on EVENT_TRACING && m

samples/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Makefile for Linux samples code
22

3-
obj-$(CONFIG_SAMPLES) += kobject/ kprobes/ tracepoints/ trace_events/ \
3+
obj-$(CONFIG_SAMPLES) += kobject/ kprobes/ trace_events/ \
44
hw_breakpoint/ kfifo/ kdb/ hidraw/ rpmsg/ seccomp/

samples/tracepoints/Makefile

Lines changed: 0 additions & 6 deletions
This file was deleted.

samples/tracepoints/tp-samples-trace.h

Lines changed: 0 additions & 11 deletions
This file was deleted.

samples/tracepoints/tracepoint-probe-sample.c

Lines changed: 0 additions & 57 deletions
This file was deleted.

samples/tracepoints/tracepoint-probe-sample2.c

Lines changed: 0 additions & 44 deletions
This file was deleted.

samples/tracepoints/tracepoint-sample.c

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)