create directories branches, tags, trunk
[lttv.git] / markers-userspace / marker-lib.c
index c13c9eec194fd7154151f4736cf75115422fc63a..14d2466d4c8904a86791f13ba6e3c633493f6164 100644 (file)
@@ -2,6 +2,7 @@
 #include "marker.h"
 #include <stdio.h>
 #include <errno.h>
+#include <sys/user.h>
 
 __attribute__ ((visibility ("protected")))
 extern struct marker __start___markers[];
@@ -39,9 +40,13 @@ __attribute__ ((visibility ("protected")))
 void marker_probe_cb(const struct marker *mdata, void *call_private,
        const char *fmt, ...)
 {
-       static unsigned int count = 0;
+       char buf[PAGE_SIZE];
+       va_list ap;
 
-       printf("Test probe function %u\n", count++);
+       va_start(ap, fmt);
+       vsnprintf(buf, PAGE_SIZE-1, fmt, ap);
+       sys_trace(0, 0, buf);
+       va_end(ap);
 }
 
 //FIXME : imv_read won't work with optimized immediate values.
This page took 0.023208 seconds and 4 git commands to generate.