new ltt-usertrace : fix sem_post and dead parent
[lttv.git] / ltt-usertrace / sample-highspeed.c
CommitLineData
972a52cf 1
2#include <stdio.h>
3#include <unistd.h>
4
5#define LTT_TRACE
d5970cd7 6#define LTT_TRACE_FAST
972a52cf 7#include <ltt/ltt-facility-user_generic.h>
8
9
10int main(int argc, char **argv)
11{
987daa89 12 printf("Will trace the following string : Running fast! in an infinite loop.\n");
13 printf("Abort with CTRL-C or it will quickly fill up your disk.\n");
2c86dabf 14 printf("See the result file in /tmp/ltt-usertrace.\n");
972a52cf 15
e0cd021d 16 int i;
17 //while(1) {
18 for(i=0; i<100000; i++) {
972a52cf 19 trace_user_generic_string("Running fast!");
20 }
21
22 return 0;
23}
24
This page took 0.023182 seconds and 4 git commands to generate.