X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=doc%2Fman%2Flttng-ust.3;h=c72bd32bd116a90b2546e1bb33ac4b27c88b0a28;hb=f08370eb4e78dff85c8c712a7d7af54d12261d2a;hp=591c1db014eef7acf3f8d4b1f11cf14adc1772f0;hpb=641c659aa0558ea68008e96c64abe9629d540ae7;p=lttng-ust.git diff --git a/doc/man/lttng-ust.3 b/doc/man/lttng-ust.3 index 591c1db0..c72bd32b 100644 --- a/doc/man/lttng-ust.3 +++ b/doc/man/lttng-ust.3 @@ -20,7 +20,7 @@ applications and libraries. .SH "USAGE WITH TRACEF" .PP The simplest way to add instrumentation to your code is by far the -tracef() API. To you it, in a nutshell: +tracef() API. To do it, in a nutshell: 1) #include @@ -29,12 +29,15 @@ tracef() API. To you it, in a nutshell: 3) Link your program against liblttng-ust.so. -4) Enable the UST event "lttng_ust_tracef:event" when tracing with the - following sequence of commands from lttng-tools: +4) Enable UST events when tracing with the following sequence of commands + from lttng-tools: - lttng create; lttng enable-event -u "lttng_ust_tracef:event"; lttng start + lttng create + lttng enable-event -u -a + lttng start [... run your program ...] - lttng stop; lttng view + lttng stop + lttng view That's it!