X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=ltt-usertrace%2Fsample-printf.c;h=a513e3b6538a28a289afaa55b017e637caebece0;hb=f57fd845a3c7c14f789a91cd70140d08632208ff;hp=85fd6507460fd5d1330de469df2dbb9a2862a68c;hpb=055b88b863eaa08c453cdfb8c94ce9083522e4dc;p=lttv.git diff --git a/ltt-usertrace/sample-printf.c b/ltt-usertrace/sample-printf.c index 85fd6507..a513e3b6 100644 --- a/ltt-usertrace/sample-printf.c +++ b/ltt-usertrace/sample-printf.c @@ -6,11 +6,17 @@ #define LTT_BLOCKING 1 #include #include +// Notice the inclusion of ltt-facility-custom-user_generic.h for the +// slow_printf support int main(int argc, char **argv) { printf("Will trace a printf of an incrementing counter.\n"); + printf("Abort with CTRL-C.\n"); + printf("No file is created with this example : it logs through a kernel\n"); + printf("system call. See the LTTng lttctl command to start tracing.\n"); + unsigned int count = 0; while(1) {