|author||Jody McIntyre <firstname.lastname@example.org>||2009-03-24 16:00:28 -0400|
|committer||Ingo Molnar <email@example.com>||2009-03-24 22:32:12 +0100|
tracing: Documentation / sample code fixes for tracepoints
Fix the tracepoint documentation to refer to "tracepoint-sample" instead of "tracepoint-example" to match what actually exists; fix the directory, and clarify how to compile. Change every instance of "example" in the sample tracepoint code to "sample" for consistency. Signed-off-by: Jody McIntyre <firstname.lastname@example.org> Acked-by: Mathieu Desnoyers <email@example.com> Cc: firstname.lastname@example.org LKML-Reference: <20090324200027.GH8294@clouds> Signed-off-by: Ingo Molnar <email@example.com>
Diffstat (limited to 'Documentation/tracepoints.txt')
1 files changed, 7 insertions, 6 deletions
diff --git a/Documentation/tracepoints.txt b/Documentation/tracepoints.txt
index 4ff43c6de299..c0e1ceed75a4 100644
@@ -103,13 +103,14 @@ used to export the defined tracepoints.
* Probe / tracepoint example
-See the example provided in samples/tracepoints/src
+See the example provided in samples/tracepoints
-Compile them with your kernel.
+Compile them with your kernel. They are built during 'make' (not
+'make modules') when CONFIG_SAMPLE_TRACEPOINTS=m.
Run, as root :
-modprobe tracepoint-example (insmod order is not important)
-cat /proc/tracepoint-example (returns an expected error)
-rmmod tracepoint-example tracepoint-probe-example
+modprobe tracepoint-sample (insmod order is not important)
+cat /proc/tracepoint-sample (returns an expected error)
+rmmod tracepoint-sample tracepoint-probe-sample