LTTng

From Alpine Linux
Revision as of 19:14, 17 June 2016 by Mjeanson (talk | contribs) (Created page with "{{Draft}} = Installation = {{Cmd|apk add lttng-tools}} = Kernel tracing = The kernel tracing part of LTTng requires out of tree modules to be built against the running ke...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This material is work-in-progress ...

Do not follow instructions here until this notice is removed.
(Last edited by Mjeanson on 17 Jun 2016.)

Installation

apk add lttng-tools

Kernel tracing

The kernel tracing part of LTTng requires out of tree modules to be built against the running kernel. These modules depend on the tracepoint facility which is disabled in the current Alpine Linux grsec kernel. However, the alternate vanilla kernel has all the required options built-in.

apk add linux-vanilla linux-vanilla-dev

Reboot with the vanilla kernel, you'll have to either change the default kernel flavour in /etc/update-extlinux.conf or uninstall the grsec kernel. Then build the LTTng modules from source.

wget REDACTED tar xvf lttng-modules-latest-2.8.tar.bz2 cd lttng-modules-* make sudo make install sudo depmod

If you have an already running lttng-sessiond at this point, it will need to be restarted to enable kernel tracing.


Userspace tracing