X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=markers-userspace%2Fmarker-lib.c;h=b2165b8b7ac542a86f4da1399a1be0c0a6bda1b1;hb=f39e77c6a6fc7965fdc5766980cf8e5157f41e63;hp=c13c9eec194fd7154151f4736cf75115422fc63a;hpb=a010d844338a34772e08e5c41e1d28158982d522;p=lttv.git diff --git a/markers-userspace/marker-lib.c b/markers-userspace/marker-lib.c index c13c9eec..b2165b8b 100644 --- a/markers-userspace/marker-lib.c +++ b/markers-userspace/marker-lib.c @@ -39,9 +39,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.