aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/trace/tracepoints.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/trace/tracepoints.txt')
-rw-r--r--Documentation/trace/tracepoints.txt15
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
81the module exit function to make sure there is no caller left using 81the module exit function to make sure there is no caller left using
82the probe. This, and the fact that preemption is disabled around the 82the probe. This, and the fact that preemption is disabled around the
83probe call, make sure that probe removal and module unload are safe. 83probe call, make sure that probe removal and module unload are safe.
84See the "Probe example" section below for a sample probe module.
85 84
86The tracepoint mechanism supports inserting multiple instances of the 85The tracepoint mechanism supports inserting multiple instances of the
87same tracepoint, but a single definition must be made of a given 86same tracepoint, but a single definition must be made of a given
@@ -100,17 +99,3 @@ core kernel image or in modules.
100If the tracepoint has to be used in kernel modules, an 99If the tracepoint has to be used in kernel modules, an
101EXPORT_TRACEPOINT_SYMBOL_GPL() or EXPORT_TRACEPOINT_SYMBOL() can be 100EXPORT_TRACEPOINT_SYMBOL_GPL() or EXPORT_TRACEPOINT_SYMBOL() can be
102used to export the defined tracepoints. 101used to export the defined tracepoints.
103
104* Probe / tracepoint example
105
106See the example provided in samples/tracepoints
107
108Compile them with your kernel. They are built during 'make' (not
109'make modules') when CONFIG_SAMPLE_TRACEPOINTS=m.
110
111Run, as root :
112modprobe tracepoint-sample (insmod order is not important)
113modprobe tracepoint-probe-sample
114cat /proc/tracepoint-sample (returns an expected error)
115rmmod tracepoint-sample tracepoint-probe-sample
116dmesg