manpage -> man pages
[lttng-docs.git] / contents / understanding-lttng / plumbing / liblttng-ctl-lttng.md
CommitLineData
5e0cbfb0
PP
1---
2id: liblttng-ctl-lttng
3---
4
5The LTTng control library, `liblttng-ctl`, can be used to communicate
6with the session daemon using a C API that hides the underlying
7protocol's details. `liblttng-ctl` is part of LTTng-tools.
8
9`liblttng-ctl` may be used by including its "master" header:
10
11~~~ c
12#include <lttng/lttng.h>
13~~~
14
15Some objects are referred by name (C string), such as tracing sessions,
16but most of them require creating a handle first using
17`lttng_create_handle()`. The best available developer documentation for
18`liblttng-ctl` is, for the moment, its installed header files as such.
19Every function/structure is thoroughly documented.
20
21The `lttng` program is the _de facto_ standard user interface to
22control LTTng tracing sessions. `lttng` uses `liblttng-ctl` to
23communicate with session daemons behind the scenes.
5037eb52 24<a href="/man/1/lttng" class="ext">Its man page</a> is exhaustive, as
5e0cbfb0
PP
25well as its command line help (<code>lttng <em>cmd</em> --help</code>,
26where <code><em>cmd</em></code> is the command name).
27
28The [Controlling tracing](#doc-controlling-tracing) section is a feature
29tour of the `lttng` tool.
This page took 0.023103 seconds and 4 git commands to generate.