Make lttng-gen-tp executable
[lttng-ust.git] / tests / hello / tp.c
index e3d67618866e04e32f3e75ec3b0e07849f4e8697..71a01c811d4345dda991e895122c830c32a6b480 100644 (file)
@@ -1,17 +1,17 @@
-#include "tp.h"
-#include <ust/marker.h>
-#include "usterr.h"
+/*
+ * 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.
+ */
 
-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);
-}
+#define TRACEPOINT_CREATE_PROBES
+#include "ust_tests_hello.h"
This page took 0.023184 seconds and 4 git commands to generate.