/Download

Tux

Build LTTng from sources

LTTng is provided as three packages. In order to build them, you will need the latest version of Userspace RCU:

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.

LTTng 2.5 "Fumisterie"?

LTTng 2.4 "Époque Opaque"?

Latest release candidates: LTTng 2.6 "Gaïa" ?

Archives

Git

Prefer cloning?

We do too.

Here's how to clone the Git repositories of our three main packages:

LTTng-tools

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

Gitweb/GitHub mirror

LTTng-UST

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

Gitweb/GitHub mirror

LTTng-modules

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

Gitweb/GitHub mirror

Git

Prefer cloning?

We do too.

Ubuntu

Ubuntu

The following steps apply to Ubuntu ≥ 12.04. For previous releases, you will need to build and install LTTng from source, as no Ubuntu packages were available before version 12.04.

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 lttng-modules-dkms
sudo apt-get liblttng-ust-dev

PPA

The LTTng PPA offers the latest stable versions of LTTng packages. To get packages from the 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
Fedora

Fedora

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

Proceed on to fetch LTTng-modules' source. Build and install it as follows:

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

Fedora

Debian

Debian

Debian wheezy (stable) and previous versions are not supported; you will need to build and install LTTng packages from source for those.

Debian jessie (testing) and sid (unstable) have everything you need:

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

openSUSE
(and other RPM-based distributions)

openSUSE has LTTng packages since version 12.3. To install LTTng, you first need to add an entry to your repositories. All LTTng repositories are available here. For example, the following will add the LTTng repository for openSUSE 13.1:

sudo -i
curl http://download.opensuse.org/repositories/devel:/tools:/lttng/openSUSE_13.1/devel:tools:lttng.repo > /etc/zypp/repos.d/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)

Arch Linux

Arch Linux

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're living on the edge, the AUR also contains the latest Git masters of those packages: lttng-tools-git, lttng-modules-git, and lttng-ust-git.

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 packages in Buildroot are 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.

OpenEmbedded/Yocto

OpenEmbedded/Yocto

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.

OpenEmbedded/Yocto

OpenEmbedded/Yocto