June 2017
Intermediate to advanced
478 pages
13h 14m
English
LTTng can use the set of ftrace events described previously as potential trace points. Initially, they are disabled.
The control interface for LTTng is the lttng command. You can list the kernel probes using the following:
# lttng list --kernelKernel events:------------- writeback_nothread (loglevel: TRACE_EMERG (0)) (type: tracepoint) writeback_queue (loglevel: TRACE_EMERG (0)) (type: tracepoint) writeback_exec (loglevel: TRACE_EMERG (0)) (type: tracepoint)[...]
Traces are captured in the context of a session, which in this example is called test:
# lttng create testSession test created.Traces will be written in /home/root/lttng-traces/test-20150824-140942# lttng listAvailable tracing sessions: 1) test (/home/root/lttng-traces/test-20150824-140942) ...
Read now
Unlock full access