update
[lttv.git] / markers-userspace / testprog.c
index 037e1c191f9439ef9c4b00a8043b96f5a7c53d3f..5c3010a88c849fe1abc763447d5270eaa13943b3 100644 (file)
@@ -1,11 +1,18 @@
 #include <stdio.h>
+#include <unistd.h>
 #include "marker.h"
 
+extern void testfct(void);
+
 int main(int argc, char **argv)
 {
        void *ptr;
        unsigned long val;
 
-       trace_mark(test_marker, "ptr %p val %lu", ptr, val);
+       while (1) {
+               trace_mark(test_marker, "ptr %p val %lu", ptr, val);
+               testfct();
+               sleep(2);
+       }
        return 0;
 }
This page took 0.022681 seconds and 4 git commands to generate.