reorganize test programs into tests/ directory
[ust.git] / tests / hello / tp.c
diff --git a/tests/hello/tp.c b/tests/hello/tp.c
new file mode 100644 (file)
index 0000000..2ee7392
--- /dev/null
@@ -0,0 +1,17 @@
+#include "tp.h"
+#include "marker.h"
+#include "usterr.h"
+
+DEFINE_TRACE(hello_tptest);
+
+void tptest_probe(int anint)
+{
+       DBG("in tracepoint probe...");
+       trace_mark(ust, tptest, "anint %d", anint);
+}
+
+static void __attribute__((constructor)) init()
+{
+       DBG("connecting tracepoint...");
+       register_trace_hello_tptest(tptest_probe);
+}
This page took 0.022653 seconds and 4 git commands to generate.