/Download

Source code

Build LTTng
from source

Archives:

LTTng-tools
LTTng-UST
LTTng-modules

More documentation on how to build the following packages may be found in their README.md files, which are rendered as rich text when viewed on GitHub.

Please note that LTTng-tools supports both LTTng-modules (Linux kernel tracer) and LTTng-UST (user space tracer) released as part of the same minor release series. While some releases do not change the tracer ABIs and should work with previous versions of the tracers, no testing is performed to ensure that cross-version compatibility is maintained.

Applications instrumented with older versions of the LTTng-UST project do not have to be rebuilt or modified to work with the latest LTTng-tools.

LTTng 2.8 "Isseki Nicho"? (current release)

LTTng 2.7 "Herbe à Détourne"? (previous release)

Git

Prefer cloning?

We do too.

LTTng-tools

git clone git://git.lttng.org/lttng-tools.git

LTTng-UST

git clone git://git.lttng.org/lttng-ust.git

LTTng-modules

git clone git://git.lttng.org/lttng-modules.git
Git

Prefer cloning?

We do too.

Ubuntu

Ubuntu

LTTng 2.7 available on Ubuntu 16.04 Xenial Xerus.

LTTng 2.8 available on any current Ubuntu release using the LTTng Latest Stable PPA.

LTTng is available on Ubuntu since Ubuntu 12.04 Precise Pangolin.

Two sources of LTTng packages are available for Ubuntu: official repositories and PPA.

Official repositories

To install LTTng from the official Ubuntu repositories, simply use apt-get:

sudo apt-get install lttng-tools
sudo apt-get install lttng-modules-dkms
sudo apt-get install liblttng-ust-dev

If you need to trace Java applications, you need to install the LTTng-UST Java agent also (available since Ubuntu 15.10 Wily Werewolf):

sudo apt-get install liblttng-ust-agent-java

If you need to trace Python applications, you need to install the LTTng-UST Python agent also (available since Ubuntu 16.04 Xenial Xerus):

sudo apt-get install python3-lttngust

PPA

The LTTng Latest Stable PPA offers the latest stable versions of LTTng packages. To get packages from this PPA, follow these steps:

sudo apt-add-repository ppa:lttng/ppa
sudo apt-get update
sudo apt-get install lttng-tools
sudo apt-get install lttng-modules-dkms
sudo apt-get install liblttng-ust-dev
sudo apt-get install liblttng-ust-agent-java
sudo apt-get install python3-lttngust
Fedora

Fedora

LTTng-tools 2.6 and LTTng-UST 2.6 (both end-of-life) available on Fedora 22, Fedora 23, and Fedora Rawhide.

Starting from Fedora 17, LTTng-tools and LTTng-UST packages are officially available using yum:

sudo yum install lttng-tools
sudo yum install lttng-ust

LTTng-modules still needs to be built and installed from source. For that, make sure that the kernel-devel package is already installed beforehand:

sudo yum install kernel-devel

Fetch LTTng-modules' source. Build and install it as follows:

KERNELDIR=/usr/src/kernels/$(uname -r) make
sudo make modules_install

Note: If you need to trace Java or Python applications on Fedora, you need to build and install LTTng-UST from source.

Fedora

Fedora

LTTng-tools 2.6 and LTTng-UST 2.6 (both end-of-life) available on Fedora 22, Fedora 23, and Fedora Rawhide.

Debian

Debian

LTTng 2.8 available on Debian "stretch" and Debian "sid".

LTTng 2.5 (end-of-life) available on Debian "jessie".

Starting from Debian "jessie", packages are officially available using apt-get:

sudo apt-get install lttng-tools
sudo apt-get install lttng-modules-dkms
sudo apt-get install liblttng-ust-dev

If you need to trace Java or Python applications, you need to install the LTTng-UST Java or Python agents also (available since Debian "stretch"):

sudo apt-get install liblttng-ust-agent-java
sudo apt-get install python3-lttngust
openSUSE

openSUSE
(and other RPM-based distributions)

LTTng 2.7 available on openSUSE Leap 42.1.

openSUSE has LTTng packages since version 12.3.

Note: If you need to trace Java or Python applications on openSUSE, you need to build and install LTTng-UST from source.

openSUSE Leap

The openSUSE Leap 42.1 repository includes LTTng packages. Use zypper directly:

sudo zypper install lttng-tools
sudo zypper install lttng-modules
sudo zypper install lttng-ust-devel

Other openSUSE releases

To install LTTng on other openSUSE releases, you first need to add an entry to your repositories. All openSUSE LTTng repositories are available here. For example, the following adds the LTTng repository for openSUSE 13.2:

sudo zypper addrepo http://download.opensuse.org/repositories/devel:/tools:/lttng/openSUSE_13.2/devel:tools:lttng.repo

Then, refresh the package database:

sudo zypper refresh

and install lttng-tools, lttng-modules and lttng-ust-devel:

sudo zypper install lttng-tools
sudo zypper install lttng-modules
sudo zypper install lttng-ust-devel
openSUSE

openSUSE
(and other RPM-based distributions)

LTTng 2.7 available on openSUSE Leap 42.1.

Arch Linux

Arch Linux

LTTng 2.8 available on the Arch Linux user repository.

LTTng packages are available for Arch Linux in the AUR: lttng-tools, lttng-modules, and lttng-ust.

You can automate all this using Yaourt:

yaourt -S lttng-tools
yaourt -S lttng-modules
yaourt -S lttng-ust

If you need to trace Python applications, you need to install the LTTng-UST Python agent also:

Enterprise distributions

Enterprise distributions

RHEL and SLES

To install LTTng on enterprise distributions, e.g., RHEL and SLES, please see EfficiOS Enterprise Packages.

Enterprise distributions

Enterprise distributions

RHEL and SLES

Buildroot

Buildroot

LTTng 2.7 available on Buildroot 2016.02 and Buildroot 2016.05.

LTTng packages in Buildroot are named lttng-tools, lttng-modules and lttng-libust. To enable them, start the Buildroot configuration menu as usual:

make menuconfig

In:

  • Kernel: make sure Linux kernel is enabled
  • Toolchain: make sure the following options are enabled:
    • Enable large file (files > 2GB) support
    • Enable WCHAR support

In Target packages/Debugging, profiling and benchmark, enable lttng-modules and lttng-tools.

In Target packages/Libraries/Other, enable lttng-libust.

Note: If you need to trace Java or Python applications on Buildroot, you need to build and install LTTng-UST from source.

OpenEmbedded/Yocto

OpenEmbedded
and Yocto

LTTng 2.7 available on OpenEmbedded Core 2016-4.

LTTng recipes are available in the openembedded-core layer of OpenEmbedded:

  • lttng-tools
  • lttng-modules
  • lttng-ust

Using BitBake, the simplest way to include LTTng recipes in your target image is to add them to IMAGE_INSTALL_append in conf/local.conf:

IMAGE_INSTALL_append = " lttng-tools lttng-modules lttng-ust"

If you're using Hob, click Edit image recipe once you have selected a machine and an image recipe. Then, in the All recipes tab, search for lttng and you should find and be able to include the three LTTng recipes.

Note: If you need to trace Java or Python applications on OpenEmbedded/Yocto, you need to build and install LTTng-UST from source.

OpenEmbedded/Yocto

OpenEmbedded
and Yocto

LTTng 2.7 available on OpenEmbedded Core 2016-4.

Alpine Linux

Alpine Linux

LTTng-tools 2.8 and LTTng-UST 2.8 available on Alpine Linux edge.

LTTng is available on Alpine Linux edge, and will be available on Alpine Linux 3.5.

Once your system is configured for edge, make sure to enable the testing repository by uncommenting the corresponding line in /etc/apk/repositories, and then add the LTTng packages:

sudo apk add lttng-tools
sudo apk add lttng-ust-dev

Note that LTTng-modules is not packaged for Alpine Linux. See the LTTng page on the Alpine Linux wiki for more information.