X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=doc%2Fman%2Flttng-ust.3.txt;h=1f4d7e481e95fb1f0957a8dc86fa5a4817654b66;hb=00665d8e072bc581e5a3e93b395bd6e19a4c2fcd;hp=dda9cec6e55c7fcfcc52384036d8206042005809;hpb=885adac87fb5d9ce7384be7eabe52248ed99fc0f;p=lttng-ust.git diff --git a/doc/man/lttng-ust.3.txt b/doc/man/lttng-ust.3.txt index dda9cec6..1f4d7e48 100644 --- a/doc/man/lttng-ust.3.txt +++ b/doc/man/lttng-ust.3.txt @@ -843,6 +843,39 @@ cc -c app.c cc -o app tp.o app.o -llttng-ust -ldl ------------------------------------- +Using the man:lttng(1) tool, create an LTTng tracing session, enable +all the events of this tracepoint provider, and start tracing: + +[role="term"] +---------------------------------------------- +lttng create my-session +lttng enable-event --userspace 'my_provider:*' +lttng start +---------------------------------------------- + +You may also enable specific events: + +[role="term"] +---------------------------------------------------------- +lttng enable-event --userspace my_provider:big_event +lttng enable-event --userspace my_provider:event_instance2 +---------------------------------------------------------- + +Run the application: + +[role="term"] +-------------------- +./app some arguments +-------------------- + +Stop the current tracing session and inspect the recorded events: + +[role="term"] +---------- +lttng stop +lttng view +---------- + Tracepoint provider header file ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~