Installation

This section describes the installation of the LTTng tracer and the LTTng Eclipse plug-ins as well as their dependencies.

LTTng Tracer

While the Eclipse plug-ins can run on the standard Eclipse platforms (Linux, Mac, Windows), the LTTng tracer and its accompanying tools run on Linux.

The tracer and tools have been available for download in Ubuntu since 12.04. They can easily be installed with the following command:

  > sudo apt-get install lttng-tools

For other distributions, older Ubuntu distributions, or the latest, bleeding edge LTTng tracer, please refer to the LTTng website for installation information.

Note: The LTTng tracer (and accompanying tools) is required only if you want to create your own traces (the usual case). If you intend to simply analyze existing traces then it is not necessary to install the tracer.

LTTng Eclipse Plug-ins

The easiest way to install the LTTng plug-ins for Eclipse is through the Software Updates and Add-ons menu. For information on how to use this menu, refer to this link.

The legacy ( Classic :-)) Eclipse LTTng (v0.x) is also available as an optional download. Refer to here for installation and verification instructions.

The LTTng plug-ins are structured as a stack of features/plug-ins as following:

LTTng Eclipse Dependencies

The Eclipse LTTng controls the LTTng tracer through an ssh connection even if the tracer is running locally (the 'degenerate' case).

Therefore, the target system (where the tracer runs) needs to run an ssh server as well as sftp server (for file transfer) to which you have permission to connect.

On the host side (where Eclipse is running), you also need to have Eclipse RSE (Remote System Explorer) installed to handle the SSH connection and transport. The RSE can be installed the standard way ( Help > Install New Software... > General Purpose Tools > Remote System Explorer End-User Runtime).

Installation Verification

Here are the quick steps to verify that your installation is functional:

If an error message is displayed, you might want to double-check that the trace type is correctly set (right-click on the trace and "Select Trace Type...").

Refer to Tracing Perspective for detailed description of the views and their usage.

To download sample LTTng traces, go to http://lttng.org/download. At the bottom of the page there is a link to some sample LTTng 2.0 kernel traces.