new ltt-usertrace
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 9 Mar 2006 21:05:29 +0000 (21:05 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 9 Mar 2006 21:05:29 +0000 (21:05 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1644 04897980-b3bd-0310-b5e0-8ef037075253

ltt-usertrace/sample-highspeed.c
ltt-usertrace/sample-instrument-fct.c
ltt-usertrace/sample-printf.c
ltt-usertrace/sample.c

index 963a83a700ba7c7aa8ffb704de0da8225c80e2af..3f249d3f69bfca7a5f8fa7d77bd23b792f8c278f 100644 (file)
@@ -9,7 +9,9 @@
 
 int main(int argc, char **argv)
 {
-       printf("Will trace the following string : Running fast! in a infinite loop.\n");
+       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");
 
        while(1) {
                trace_user_generic_string("Running fast!");
index 2bc6cd5d5229367c76e01bdad1b08b6a95a0b8b6..2881adc2f1ff09fe7209546d855a9a34881f68ee 100644 (file)
@@ -14,6 +14,10 @@ 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");
+
+
        while(1) {
                test_function();
                sleep(1);
index 85fd6507460fd5d1330de469df2dbb9a2862a68c..9b2292a7ba61e650b52e0cc10b1de03b3b89d6e7 100644 (file)
@@ -6,11 +6,17 @@
 #define LTT_BLOCKING 1
 #include <ltt/ltt-facility-user_generic.h>
 #include <ltt/ltt-facility-custom-user_generic.h>
+// 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) {
index efe4110bfdb0c3bd652f3fc7f8fdffabcf5bed01..d6452525e5d67d34aa2429cab4cd42b8be629fe5 100644 (file)
@@ -10,6 +10,9 @@
 int main(int argc, char **argv)
 {
        printf("Will trace the following string : Hello world! Have a nice day.\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");
 
        while(1) {
                trace_user_generic_string("Hello world! Have a nice day.");
This page took 0.025038 seconds and 4 git commands to generate.