Install easy-ust and gen-tp examples in doc/
[lttng-ust.git] / doc / examples / gen-tp / sample_tracepoint.tp
diff --git a/doc/examples/gen-tp/sample_tracepoint.tp b/doc/examples/gen-tp/sample_tracepoint.tp
new file mode 100644 (file)
index 0000000..fa7d18a
--- /dev/null
@@ -0,0 +1,15 @@
+TRACEPOINT_EVENT(
+       sample_tracepoint,
+       message, // C++ Style comment
+       TP_ARGS(char *, text),
+       TP_FIELDS(
+               ctf_string(message, text)
+                 )
+)
+/*
+ * Longer comments
+ */
+TRACEPOINT_LOGLEVEL(
+       sample_tracepoint,
+       message,
+       TRACE_WARNING)
This page took 0.022808 seconds and 4 git commands to generate.