From: compudj Date: Thu, 9 Mar 2006 21:10:10 +0000 (+0000) Subject: new ltt-usertrace X-Git-Tag: v0.12.20~1844 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2c86dabf77d3134230235cbfb6d72b77b1b90964;p=lttv.git new ltt-usertrace git-svn-id: http://ltt.polymtl.ca/svn@1645 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt-usertrace/sample-highspeed.c b/ltt-usertrace/sample-highspeed.c index 3f249d3f..78b0c7c1 100644 --- a/ltt-usertrace/sample-highspeed.c +++ b/ltt-usertrace/sample-highspeed.c @@ -11,7 +11,7 @@ int main(int argc, char **argv) { printf("Will trace the following string : Running fast! in an infinite loop.\n"); printf("Abort with CTRL-C or it will quickly fill up your disk.\n"); - printf("See the result file in /tmp/ltt-usertraces.\n"); + printf("See the result file in /tmp/ltt-usertrace.\n"); while(1) { trace_user_generic_string("Running fast!"); diff --git a/ltt-usertrace/sample-instrument-fct.c b/ltt-usertrace/sample-instrument-fct.c index 2881adc2..cb8732d5 100644 --- a/ltt-usertrace/sample-instrument-fct.c +++ b/ltt-usertrace/sample-instrument-fct.c @@ -15,7 +15,7 @@ void test_function(void) int main(int argc, char **argv) { printf("Abort with CTRL-C.\n"); - printf("See the result file in /tmp/ltt-usertraces.\n"); + printf("See the result file in /tmp/ltt-usertrace.\n"); while(1) { diff --git a/ltt-usertrace/sample-thread.c b/ltt-usertrace/sample-thread.c index 315a926e..d98c86f5 100644 --- a/ltt-usertrace/sample-thread.c +++ b/ltt-usertrace/sample-thread.c @@ -42,6 +42,9 @@ int main() printf("Will trace the following string : Hello world! Have a nice day.\n"); printf("Press CTRL-C to stop.\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\n"); + printf("thread main, thread id : %lu, pid %lu\n", pthread_self(), getpid()); err = pthread_create(&tid1, NULL, thr1, NULL); if(err!=0) exit(1); diff --git a/ltt-usertrace/sample.c b/ltt-usertrace/sample.c index d6452525..b5ef4492 100644 --- a/ltt-usertrace/sample.c +++ b/ltt-usertrace/sample.c @@ -9,7 +9,8 @@ int main(int argc, char **argv) { - printf("Will trace the following string : Hello world! Have a nice day.\n"); + printf("Will trace the following string : \"Hello world! Have a nice day.\"\n"); + printf("every second.\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");