1) #include <lttng/tracelog.h>
2) /* in your code, use like a printf, with extra loglevel info. */
- tracelog(info, "Message with integer %d", 1234);
+ tracelog(TRACE_INFO, "Message with integer %d", 1234);
3) Link your program against liblttng-ust.so.
You can replace the enable-event line above with a selection of
loglevels, e.g.:
- lttng enable-event -u -a --loglevel INFO
+ lttng enable-event -u -a --loglevel TRACE_INFO
-Which will gather all events from INFO and more important loglevels.
+Which will gather all events from TRACE_INFO and more important
+loglevels.
.PP
.IP "LTTNG_UST_WITHOUT_BADDR_STATEDUMP"
Prevent liblttng-ust to perform a base-address statedump on session-enable.
.PP
+.IP "LTTNG_UST_GETCPU_PLUGIN"
+Used by the getcpu override plugin system. The environment variable
+provides the path to the shared object which will act as the getcpu override
+plugin. An example can be found in the lttng-ust documentation under
+examples/getcpu-override .
+.PP
+.IP "LTTNG_UST_CLOCK_PLUGIN"
+Used by the clock override plugin system. The environment variable
+provides the path to the shared object which will act as the clock override
+plugin. An example can be found in the lttng-ust documentation under
+doc/examples/clock-override .
+.PP
.SH "SEE ALSO"