.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 <lttng/tracef.h>
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!