diff options
author | Paul Bolle <pebolle@tiscali.nl> | 2013-03-18 04:34:10 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-03-21 05:58:03 -0400 |
commit | c25a4a09c3fa3d4b058ac612d82ddfd172410fbb (patch) | |
tree | bafbdeb42e7f85914d667897921d928c0052ef3c /Documentation/trace | |
parent | 07f42258893d3768deb9a24165d23f1355bc1949 (diff) |
doc: Remove text on tracepoint samples
The tracepoint sample code got removed. Remove a few lines on its usage
too.
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Acked-by: Rob Landley <rob@landley.net>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'Documentation/trace')
-rw-r--r-- | Documentation/trace/tracepoints.txt | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/Documentation/trace/tracepoints.txt b/Documentation/trace/tracepoints.txt index c0e1ceed75a4..da49437d5aeb 100644 --- a/Documentation/trace/tracepoints.txt +++ b/Documentation/trace/tracepoints.txt | |||
@@ -81,7 +81,6 @@ tracepoint_synchronize_unregister() must be called before the end of | |||
81 | the module exit function to make sure there is no caller left using | 81 | the module exit function to make sure there is no caller left using |
82 | the probe. This, and the fact that preemption is disabled around the | 82 | the probe. This, and the fact that preemption is disabled around the |
83 | probe call, make sure that probe removal and module unload are safe. | 83 | probe call, make sure that probe removal and module unload are safe. |
84 | See the "Probe example" section below for a sample probe module. | ||
85 | 84 | ||
86 | The tracepoint mechanism supports inserting multiple instances of the | 85 | The tracepoint mechanism supports inserting multiple instances of the |
87 | same tracepoint, but a single definition must be made of a given | 86 | same tracepoint, but a single definition must be made of a given |
@@ -100,17 +99,3 @@ core kernel image or in modules. | |||
100 | If the tracepoint has to be used in kernel modules, an | 99 | If the tracepoint has to be used in kernel modules, an |
101 | EXPORT_TRACEPOINT_SYMBOL_GPL() or EXPORT_TRACEPOINT_SYMBOL() can be | 100 | EXPORT_TRACEPOINT_SYMBOL_GPL() or EXPORT_TRACEPOINT_SYMBOL() can be |
102 | used to export the defined tracepoints. | 101 | used to export the defined tracepoints. |
103 | |||
104 | * Probe / tracepoint example | ||
105 | |||
106 | See the example provided in samples/tracepoints | ||
107 | |||
108 | Compile them with your kernel. They are built during 'make' (not | ||
109 | 'make modules') when CONFIG_SAMPLE_TRACEPOINTS=m. | ||
110 | |||
111 | Run, as root : | ||
112 | modprobe tracepoint-sample (insmod order is not important) | ||
113 | modprobe tracepoint-probe-sample | ||
114 | cat /proc/tracepoint-sample (returns an expected error) | ||
115 | rmmod tracepoint-sample tracepoint-probe-sample | ||
116 | dmesg | ||