X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=doc%2Fman%2Ftracef.3.txt;h=1068afadfef56b6e7f0256adfe196d885a280246;hb=636cf2a01500b8bef5a5959b4f1d3a9a7222b39a;hp=7cab981478b0eb19ee83faa0ce448ec4c9cb723c;hpb=92ce256da4da1586465e18362e88b5be16752d59;p=lttng-ust.git diff --git a/doc/man/tracef.3.txt b/doc/man/tracef.3.txt index 7cab9814..1068afad 100644 --- a/doc/man/tracef.3.txt +++ b/doc/man/tracef.3.txt @@ -69,34 +69,34 @@ This C source file, saved as `app.c`, can be compiled into a program like this: [role="term"] ---------------------------- -cc -o app app.c -llttng-ust ---------------------------- +---- +$ cc -o app app.c -llttng-ust +---- You can create an LTTng tracing session, enable the `tracef()` events, and start the created tracing session like this: [role="term"] ---------------------------------------------------- -lttng create my-session -lttng enable-event --userspace 'lttng_ust_tracef:*' -lttng start ---------------------------------------------------- +---- +$ lttng create my-session +$ lttng enable-event --userspace 'lttng_ust_tracef:*' +$ lttng start +---- Next, start the program to be traced: [role="term"] ------ -./app ------ +---- +$ ./app +---- Finally, stop the tracing session, and inspect the recorded events: [role="term"] ----------- -lttng stop -lttng view ----------- +---- +$ lttng stop +$ lttng view +---- [[limitations]]