X-Git-Url: http://git.liburcu.org/?p=lttng-ust.git;a=blobdiff_plain;f=doc%2Fman%2Ftracef.3.txt;h=1068afadfef56b6e7f0256adfe196d885a280246;hp=7cab981478b0eb19ee83faa0ce448ec4c9cb723c;hb=0be120c87e5a2b2099e5858b16f4bb23f81acda6;hpb=851fef973e62396b6d500d5acb00a305be9c4304 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]]