1 // Render with Asciidoctor
19 https://ci.lttng.org/job/lttng-tools_master_build/[image:https://img.shields.io/jenkins/s/https/ci.lttng.org/lttng-tools_master_build.svg[Jenkins, title="Jenkins"]]
20 https://scan.coverity.com/projects/lttng-tools[image:https://img.shields.io/coverity/scan/lttng-tools.svg[Coverity, title="Coverity"]]
23 _**{lt}**_ is a set of components to control https://lttng.org/[LTTng]
28 * The LTTng https://lttng.org/man/8/lttng-sessiond/[session daemon].
30 * The LTTng consumer daemon.
32 * The LTTng https://lttng.org/man/8/lttng-relayd/[relay daemon].
34 * {lib}, a library with a C{nbsp}API used to communicate with
37 * Python{nbsp}3 bindings of liblttng{nbh}ctl.
39 * https://lttng.org/man/1/lttng/[`lttng`], a command-line tool over
42 * https://lttng.org/man/1/lttng-crash/[`lttng{nbh}crash`], a command-line
43 tool to recover and view LTTng{nbsp}2 trace buffers in the event of a
50 == Required and optional dependencies
52 You need the following dependencies to build and run the {lt}
55 * **Linux kernel{nbsp}≥{nbsp}2.6.30**
57 * **http://www.liburcu.org/[Userspace{nbsp}RCU]{nbsp}≥{nbsp}0.11.0**.
59 Debian/Ubuntu package: `liburcu{nbh}dev`.
61 * **popt{nbsp}≥{nbsp}1.13**
63 Debian/Ubuntu package: `libpopt{nbh}dev`.
65 * **http://xmlsoft.org/[Libxml2]{nbsp}≥{nbsp}2.7.6**
67 Debian/Ubuntu package: `libxml2{nbh}dev`
69 The following dependencies are optional:
71 * **https://babeltrace.org/[Babeltrace{nbsp}2]**: default viewer
72 of the https://lttng.org/man/1/lttng-view/[`lttng view`] command,
73 `make{nbsp}check` and tests.
75 Debian/Ubuntu package: `babeltrace2`
77 * **https://lttng.org/[LTTng{nbh}UST]** (same minor version as {lt}):
78 LTTng user space tracing (applications and libraries).
80 Debian/Ubuntu package: `liblttng{nbh}ust{nbh}dev`
82 * **Perl**: `make{nbsp}check` and tests.
84 * **https://www.python.org/[Python]{nbsp}≥{nbsp}3.0**:
85 `make{nbsp}check` and tests.
87 Debian/Ubuntu package: `python3`
89 * **http://www.swig.org/[SWIG]{nbsp}≥{nbsp}2.0** and
90 **Python{nbsp}3 development headers**: Python bindings
91 (enabled at <<configure,build configuration>> time with the
92 `{nbh}{nbh}enable{nbh}python{nbh}bindings` option).
94 Debian/Ubuntu packages: `swig2.0` and `python3{nbh}dev`
97 **https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/[kmod]{nbsp}≥{nbsp}22**:
98 automatic LTTng kernel modules loading (kernel tracing).
100 * **Bash**: `make{nbsp}check`.
102 * **http://man7.org/linux/man-pages/man1/man.1.html[`man`]**
103 (manual pager): view `lttng` command manual
104 pages with the `{nbh}{nbh}help` option or with the
105 https://lttng.org/man/1/lttng-help/[`lttng{nbsp}help`] command.
107 NOTE: You can use the <<configure,build configuration>> option
108 `{nbh}{nbh}enable{nbh}embedded{nbh}help` to embed the manual pages into
109 the `lttng`, `lttng{nbh}sessiond`, `lttng{nbh}relayd`, and
110 `lttng{nbh}crash` programs so that you don't need `man` to view them.
112 * **http://perfmon2.sourceforge.net/[libpfm]{nbsp}≥{nbsp}4.0**:
113 perf regression test suite.
115 Debian/Ubuntu package: `libpfm4-dev`
117 {lt} supports both the LTTng Linux kernel tracer and LTTng user space
118 tracer sharing the same _minor_ version. While some minor releases do
119 not change the tracer ABIs and _could_ work, no testing is performed to
120 ensure that cross-version compatibility is maintained.
122 You don't need to rebuild or modify applications instrumented with older
123 versions of the LTTng{nbh}UST project to make them work with the
124 components of the latest {lt} release.
126 See the https://lttng.org/docs/[LTTng Documentation] for more
127 information on versioning.
133 You need the following tools to build {lt}:
135 * **https://www.gnu.org/software/automake/manual/html_node/Autotools-Introduction.html[GNU{nbsp}Autotools]**
136 (**Automake{nbsp}≥{nbsp}1.10**,
137 **Autoconf{nbsp}≥{nbsp}2.64**, and **Autoheader{nbsp}≥{nbsp}2.50**)
139 * **http://www.gnu.org/software/autoconf/[GNU{nbsp}Libtool]{nbsp}≥{nbsp}2.2**
141 * **https://github.com/westes/flex/[Flex]{nbsp}≥{nbsp}2.5.35**
143 * **https://www.gnu.org/software/bison/[Bison]{nbsp}≥{nbsp}2.4**
145 To build the {lt} manual pages:
147 * **https://www.methods.co.nz/asciidoc/[AsciiDoc]{nbsp}≥{nbsp}8.4.5**
149 NOTE: Previous versions could work, but were not tested.
151 * **https://pagure.io/xmlto[xmlto]{nbsp}≥{nbsp}0.0.21**
153 NOTE: Previous versions could work, but were not tested.
155 If you use GNU{nbsp}gold, which is _not_ mandatory:
157 * **GNU{nbsp}gold{nbsp}≥{nbsp}2.22**
159 NOTE: With GNU{nbsp}gold, you might need to add
160 `-L/usr/local/lib` to the `LDFLAGS` environment variable.
164 . **If you have the {lt} Git source**, run:
170 This script creates the `configure` script.
172 . [[configure]]Configure the build:
179 If you want the {lib} Python bindings, use the
180 `{nbh}{nbh}enable{nbh}python{nbh}bindings` option. See also the `PYTHON`
181 and `PYTHON_CONFIG` environment variables in
182 `./configure{nbsp}{nbh}{nbh}help`.
184 If you don't want to build the manual pages, use the
185 `{nbh}{nbh}disable{nbh}man{nbh}pages` option.
187 If you want to embed the manual pages into the `lttng`,
188 `lttng{nbh}sessiond`, `lttng{nbh}relayd`, and `lttng{nbh}crash` programs
189 so that you don't need `man` to view them, use the
190 `{nbh}{nbh}enable{nbh}embedded{nbh}help` option.
192 This build configuration script finds LTTng{nbh}UST with
193 https://www.freedesktop.org/wiki/Software/pkg-config/[pkg{nbh}config]:
194 set the `PKG_CONFIG_PATH` environment variable accordingly if
195 pkg{nbh}config cannot find the `lttng{nbh}ust` package information.
197 See `./configure{nbsp}{nbh}{nbh}help` for the complete list of options.
206 . Install the project:
215 See the https://lttng.org/docs/#doc-controlling-tracing[Tracing control]
216 section of the LTTng Documentation to learn how to use the {lt}
219 See also the https://lttng.org/man/[LTTng manual pages] (all
220 section{nbsp}1 and{nbsp}8 pages).
222 As there's no official {lib} Python bindings yet, see
223 link:doc/python-howto.txt[`doc/python-howto.txt`] to understand how to
229 https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev[lttng-dev]
230 (mailto:lttng-dev@lists.lttng.org[lttng-dev@lists.lttng.org])
233 irc://irc.oftc.net/lttng[`#lttng`] on the OFTC network
236 https://bugs.lttng.org/projects/lttng-tools[{lt} bug tracker]
239 https://github.com/lttng/lttng-tools/[lttng/lttng{nbh}tools]
241 Continuous integration::
242 https://ci.lttng.org/job/lttng-tools_master_build/[{lt}'s master build]
246 https://review.lttng.org/q/project:lttng-tools[_lttng{nbh}tools_ project]