projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update version
[lttv.git]
/
markers-userspace
/
marker-lib.c
diff --git
a/markers-userspace/marker-lib.c
b/markers-userspace/marker-lib.c
index c13c9eec194fd7154151f4736cf75115422fc63a..b2165b8b7ac542a86f4da1399a1be0c0a6bda1b1 100644
(file)
--- 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, ...)
{
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.
}
//FIXME : imv_read won't work with optimized immediate values.
This page took
0.022074 seconds
and
4
git commands to generate.