[ltt-dev] [PATCH] Fix documentation for markers

Benjamin Poirier benjamin.poirier at polymtl.ca
Thu Jul 9 15:03:32 EDT 2009


Update the documentation for DEFINE_MARKER_TP and GET_MARKER.

Signed-off-by: Benjamin Poirier <benjamin.poirier at polytml.ca>
---
 Documentation/markers.txt |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Documentation/markers.txt b/Documentation/markers.txt
index 951a2f3..e25df7c 100644
--- a/Documentation/markers.txt
+++ b/Documentation/markers.txt
@@ -83,12 +83,12 @@ with tracepoint probes in a scheme like this :
 
 void probe_tracepoint_name(unsigned int arg1, struct task_struct *tsk);
 
-DEFINE_MARKER_TP(marker_eventname, tracepoint_name, probe_tracepoint_name,
-	"arg1 %u pid %d");
+DEFINE_MARKER_TP(marker_channel, marker_eventname, tracepoint_name,
+	probe_tracepoint_name, "arg1 %u pid %d");
 
 notrace void probe_tracepoint_name(unsigned int arg1, struct task_struct *tsk)
 {
-	struct marker *marker = &GET_MARKER(kernel_irq_entry);
+	struct marker *marker = &GET_MARKER(marker_channel, marker_eventname);
 	/* write data to trace buffers ... */
 }
 
-- 
1.6.3.3






More information about the lttng-dev mailing list