{
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!");
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) {
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);
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");