projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libust: fix problem in computation of offset in buffer
[lttng-ust.git]
/
hello
/
hello.c
diff --git
a/hello/hello.c
b/hello/hello.c
index 0533173dee211171e320d5868eeb325240121643..102b7db258ce566daff95bc2ce540c629a75d1f8 100644
(file)
--- a/
hello/hello.c
+++ b/
hello/hello.c
@@
-5,22
+5,16
@@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <signal.h>
-#include "
../libmarkers/
marker.h"
+#include "marker.h"
#include "usterr.h"
#include "tracer.h"
#include "marker-control.h"
#include "relay.h"
#include "usterr.h"
#include "tracer.h"
#include "marker-control.h"
#include "relay.h"
+#include "tp.h"
-
-void probe(const struct marker *mdata,
- void *probe_private, void *call_private,
- const char *fmt, va_list *args)
-{
- printf("In probe\n");
-}
-
void inthandler(int sig)
{
printf("in handler\n");
void inthandler(int sig)
{
printf("in handler\n");
@@
-66,6
+60,7
@@
int main()
for(i=0; i<50; i++) {
trace_mark(ust, bar, "str %s", "FOOBAZ");
trace_mark(ust, bar2, "number1 %d number2 %d", 53, 9800);
for(i=0; i<50; i++) {
trace_mark(ust, bar, "str %s", "FOOBAZ");
trace_mark(ust, bar2, "number1 %d number2 %d", 53, 9800);
+ trace_hello_tptest(i);
usleep(100000);
}
usleep(100000);
}
@@
-80,4
+75,5
@@
int main()
return 0;
}
return 0;
}
-MARKER_LIB
+MARKER_LIB;
+TRACEPOINT_LIB;
This page took
0.026257 seconds
and
4
git commands to generate.