projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ust: port tracepoints to userspace and add usage in hello.c
[ust.git]
/
hello
/
hello.c
diff --git
a/hello/hello.c
b/hello/hello.c
index 3bbb2bd94961523bb7721fae991ef5a5740e423a..5f05e225641610960346a80773f57f55862d9bdc 100644
(file)
--- a/
hello/hello.c
+++ b/
hello/hello.c
@@
-11,7
+11,7
@@
#include "tracer.h"
#include "marker-control.h"
#include "relay.h"
#include "tracer.h"
#include "marker-control.h"
#include "relay.h"
-
+#include "tp.h"
void probe(const struct marker *mdata,
void probe(const struct marker *mdata,
@@
-63,15
+63,23
@@
int main()
printf("Hello, World!\n");
sleep(1);
printf("Hello, World!\n");
sleep(1);
- for(i=0; i<50
00
; i++) {
+ for(i=0; i<50; i++) {
trace_mark(ust, bar, "str %s", "FOOBAZ");
trace_mark(ust, bar2, "number1 %d number2 %d", 53, 9800);
trace_mark(ust, bar, "str %s", "FOOBAZ");
trace_mark(ust, bar2, "number1 %d number2 %d", 53, 9800);
+ trace_hello_tptest(i);
usleep(100000);
}
scanf("%*s");
usleep(100000);
}
scanf("%*s");
+ ltt_trace_stop("auto");
+ ltt_trace_destroy("auto");
+
+ DBG("TRACE STOPPED");
+ scanf("%*s");
+
return 0;
}
MARKER_LIB
return 0;
}
MARKER_LIB
+TRACEPOINT_LIB
This page took
0.030801 seconds
and
4
git commands to generate.