enhance hello2
[lttng-ust.git] / tests / hello2 / hello2.c
1 #include <stdio.h>
2 #include <time.h>
3 #include <errno.h>
4
5 #include "marker.h"
6 int main()
7 {
8 int i;
9 struct timespec tv;
10 struct timespec rem;
11 int result;
12
13 tv.tv_sec = 1;
14 tv.tv_nsec = 0;
15
16 do {
17 result = nanosleep(&tv, &tv);
18 } while(result == -1 && errno == EINTR);
19
20 printf("Hello, World!\n");
21
22 for(i=0; i<500; i++) {
23 trace_mark(ust, bar, "str %d", i);
24 trace_mark(ust, bar2, "number1 %d number2 %d", (int)53, (int)9800);
25 }
26
27 return 0;
28 }
29 MARKER_LIB;
This page took 0.030483 seconds and 4 git commands to generate.