Install easy-ust and gen-tp examples in doc/
[lttng-ust.git] / doc / examples / easy-ust / tp.c
diff --git a/doc/examples/easy-ust/tp.c b/doc/examples/easy-ust/tp.c
new file mode 100644 (file)
index 0000000..bf8e4c3
--- /dev/null
@@ -0,0 +1,24 @@
+/*
+ * tp.c
+ *
+ * Copyright (c) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ *
+ * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
+ * OR IMPLIED.  ANY USE IS AT YOUR OWN RISK.
+ *
+ * Permission is hereby granted to use or copy this program for any
+ * purpose,  provided the above notices are retained on all copies.
+ * Permission to modify the code and to distribute modified code is
+ * granted, provided the above notices are retained, and a notice that
+ * the code was modified is included with the above copyright notice.
+ */
+
+/*
+ * Defining macro creates the code objects of the traceprobes, only do
+ * it once per file
+ */ 
+#define TRACEPOINT_CREATE_PROBES
+/*
+ * The header containing our TRACEPOINT_EVENTs. 
+ */
+#include "sample_component_provider.h"
This page took 0.026638 seconds and 4 git commands to generate.