tests: add test-nevents
[ust.git] / tests / test-nevents / prog.c
diff --git a/tests/test-nevents/prog.c b/tests/test-nevents/prog.c
new file mode 100644 (file)
index 0000000..71c03e0
--- /dev/null
@@ -0,0 +1,23 @@
+#include <string.h>
+#include <stdlib.h>
+#include <ust/ust.h>
+
+#define N_ITER 100000
+
+int main()
+{
+       int i;
+       const char teststr[] = "Hello World! 1234567890abc";
+       void *ptrs[N_ITER];
+
+       for(i=0; i<N_ITER; i++) {
+               trace_mark(ust, an_event, "%d", i);
+               trace_mark(ust, another_event, "%s", "Hello, World!");
+       }
+
+//     ltt_trace_stop("auto");
+//     ltt_trace_destroy("auto");
+//     sleep(2);
+
+       return 0;
+}
This page took 0.022484 seconds and 4 git commands to generate.