update compat
[lttv.git] / markers-userspace / testprog.c
index 037e1c191f9439ef9c4b00a8043b96f5a7c53d3f..0dedac6aba65189345d324c51d3c6dfee1d63f29 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.024196 seconds and 4 git commands to generate.