move everything out of trunk
[lttv.git] / markers-userspace / testprog.c
index 037e1c191f9439ef9c4b00a8043b96f5a7c53d3f..d9fe8d2b0ecd4e33b6165861761a3d54a03ee291 100644 (file)
@@ -1,11 +1,19 @@
 #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);
+       }
+       execl("/bin/ls", NULL);
        return 0;
 }
This page took 0.022096 seconds and 4 git commands to generate.