~lttng/lttng-ust/lttng-ust

« back to all changes in this revision

Viewing changes to tests/hello2/hello2.c

  • Committer: Pierre-Marc Fournier
  • Date: 2009-06-15 17:10:22 UTC
  • Revision ID: git-v1:6dd969b5dd702909b8eb827e850c851053774055
reorganize test programs into tests/ directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <stdio.h>
 
2
#include <unistd.h>
 
3
#include "marker.h"
 
4
int main()
 
5
{
 
6
        int result;
 
7
        int i;
 
8
 
 
9
//      sleep(1);
 
10
 
 
11
        printf("Hello, World!\n");
 
12
 
 
13
        for(i=0; i<500; i++) {
 
14
                trace_mark(ust, bar, "str %d", i);
 
15
                trace_mark(ust, bar2, "number1 %d number2 %d", (int)53, (int)9800);
 
16
                usleep(20);
 
17
        }
 
18
 
 
19
        return 0;
 
20
}
 
21
MARKER_LIB;