bolden all dependencies and versions
[lttng-tools.git] / doc / man / lttng-sessiond.8
1 .TH "LTTNG-SESSIOND" "8" "January 31, 2012" "" ""
3 .SH "NAME"
4 lttng-sessiond \- LTTng 2.x central tracing registry session daemon.
8 .PP
9 .nf
10 lttng-sessiond [OPTIONS]
11 .fi
14 .PP
15 The LTTng project aims at providing highly efficient tracing tools for Linux.
16 It's tracers help tracking down performance issues and debugging problems
17 involving multiple concurrent processes and threads. Tracing across multiple
18 systems is also possible.
20 The session daemon, acting as a tracing registry, allow you to interact with
21 multiple tracers (kernel and user-space) inside the same container, a tracing
22 session. Trace can be gathered from the kernel and/or instrumented applications
23 (lttng-ust(3)). Aggregating those traces is done using a viewer, like the
24 babeltrace(1) text viewer.
26 In order to trace the kernel, the session daemon needs to be running as root.
27 LTTng provides the use of a \fBtracing group\fP (default: tracing). Whomever is
28 in that group can interact with the root session daemon and thus trace the
29 kernel. Session daemons can co-exist meaning that you can have a session daemon
30 running as Alice that can be used to trace her applications along side with a
31 root daemon or even a Bob daemon. We highly recommend to start the session
32 daemon at boot time for stable and long term tracing.
34 The session daemon is in charge of managing trace data consumers by spawning
35 them when the time has come. The user don't need to manage the lttng-consumerd.
38 .PP
39 This program follows the usual GNU command line syntax with long options starting
40 with two dashes. Below is a summary of the available options.
41 .PP
43 .TP
44 .BR "-h, --help"
45 Show summary of possible options and commands
46 .TP
47 .BR "\-V, \-\-version"
48 Show version.
49 .TP
50 .BR "-v, --verbose"
51 Increase verbosity
53 There is three debugging level which will print on stderr. Maximum verbosity is
54 \fB-vvv\fP.
55 .TP
56 .BR " --verbose-consumer"
57 Verbose mode for consumer. Activate DBG() macro.
58 .TP
59 .BR "-d, --daemonize"
60 Start as a daemon
61 .TP
62 .BR "-b, --background"
63 Start as a daemon, keeping console open
64 .TP
65 .BR "-g, --group=NAME"
66 Specify the tracing group name. (default: tracing)
67 .TP
68 .BR "-V, --version"
69 Show version number
70 .TP
71 .BR "-S, --sig-parent"
72 Send SIGUSR1 to parent pid to notify readiness.
74 This is used by \fBlttng(1)\fP to get notified when the session daemon is ready
75 to accept command. When building a third party tool over liblttng-ctl, this option
76 can be very handy to synchronize the control tool and the session daemon.
77 .TP
78 .BR "-q, --quiet"
79 No output at all.
80 .TP
81 .BR " --no-kernel"
82 No kernel tracer support
83 .TP
84 .BR " --agent-tcp-port"
85 Agent application registration TCP port (default: 5345)
86 .TP
87 .BR " --kmod-probes=probe1, probe2, ..."
88 Specify the kernel modules containing LTTng probes to load by the session daemon.
89 Only the component name of the probe needs to be specified, e.g. to load the
90 lttng-probe-irq and lttng-probe-sched use: --kmod-probes="irq, sched".
91 .TP
92 .BR " --extra-kmod-probes=probe1, probe2, ..."
93 Specify extra kernel modules containing LTTng probes to be loaded by the session
94 daemon. The list follows the format of the \fB--kmod-probes\fP option.
95 This list is appended to the list provided by \fB--kmod-probes\fP or, if
96 \fB--kmod-probes\fP is missing, to the default list of probes.
97 .TP
98 .BR "-c, --client-sock=PATH"
99 Specify path for the client unix socket
100 .TP
101 .BR "-a, --apps-sock PATH"
102 Specify path for apps unix socket
103 .TP
104 .BR " --kconsumerd-err-sock=PATH"
105 Specify path for the kernel consumer error socket
106 .TP
107 .BR " --kconsumerd-cmd-sock=PATH
108 Specify path for the kernel consumer command socket
109 .TP
110 .BR " --ustconsumerd32-err-sock=PATH
111 Specify path for the 32-bit UST consumer error socket
112 .TP
113 .BR " --ustconsumerd64-err-sock=PATH
114 Specify path for the 64-bit UST consumer error socket
115 .TP
116 .BR " --ustconsumerd32-cmd-sock=PATH
117 Specify path for the 32-bit UST consumer command socket
118 .TP
119 .BR " --ustconsumerd64-cmd-sock=PATH
120 Specify path for the 64-bit UST consumer command socket
121 .TP
122 .BR " --consumerd32-path=PATH
123 Specify path for the 32-bit UST consumer daemon binary
124 .TP
125 .BR " --consumerd32-libdir=PATH
126 Specify path for the 32-bit UST consumer daemon libraries
127 .TP
128 .BR " --consumerd64-path=PATH
129 Specify path for the 64-bit UST consumer daemon binary
130 .TP
131 .BR " --consumerd64-libdir=PATH
132 Specify path for the 64-bit UST consumer daemon libraries
133 .TP
134 .BR "-l, --load PATH
135 Specify path from which to automatically load session configuration(s).
136 .TP
137 .BR "-f, --config PATH
138 Specify path from which to load daemon configuration.
142 .PP
143 By default, the session daemon tries to load session configuration(s) located
144 in the user default directory \fB~/.lttng/sessions/auto/\fP and in the system
145 wide one in \fB/etc/lttng/sessions/auto/\fP. Note that the directory containing
146 the session's configuration and lttng-sessiond MUST have the same UID for them
147 to be automatically loaded.
149 Specifying a path with \-l, \-\-load PATH overrides the default directory and
150 UID check. The lttng-sessiond will simply check if it's accessible and try to
151 load every session file in it.
152 .PP
156 .PP
157 Note that all command line options will override environment variables.
158 .PP
160 .PP
162 Specify the 32-bit consumer binary path. \fB--consumerd32-path\fP
163 override this variable.
165 Specify the 64-bit consumer binary path. \fB--consumerd64-path\fP
166 override this variable.
168 Specify the 64-bit library path containing
169 \fB--consumerd32-libdir\fP override this variable.
171 Specify the 32-bit library path containing
172 \fB--consumerd64-libdir\fP override this variable.
174 Debug-mode disabling use of clone/fork. Insecure, but required to allow
175 debuggers to work with sessiond on some operating systems.
177 Control the timeout of application's socket when sending and receiving
178 commands. Takes an integer parameter: the timeout value, in seconds.
179 After this period of time, the application is unregistered by the
180 session daemon. A value of 0 or -1 means an infinite timeout. Default
181 value is 5 seconds.
183 Control timeout of socket connection, receive and send. Takes an integer
184 parameter: the timeout value, in milliseconds. A value of 0 or -1 uses
185 the timeout of the operating system (this is the default).
187 Specify the path that contains the XML session configuration schema (xsd).
189 Specify the kernel modules probes that should be loaded by the session daemon.
191 Specify extra kernel modules probes that should be loaded by the session daemon.
192 .SH "SEE ALSO"
194 .PP
195 babeltrace(1), lttng-ust(3), lttng(1)
196 .PP
200 .PP
201 For unprivileged user running lttng-sessiond, the maximum number of file
202 descriptors per process is usually 1024. This limits the number of traceable
203 applications since for each instrumented application there is two file
204 descriptors per-CPU and one more socket for bidirectional communication.
206 For the root user, the limit is bumped to 65535. Future version will deal with
207 this limitation.
208 .PP
210 .SH "BUGS"
212 .PP
213 No show stopper bugs are known yet in this version.
215 If you encounter any issues or usability problem, please report it on our
216 mailing list <> to help improve this project.
219 .PP
220 lttng-sessiond is distributed under the GNU General Public License version 2. See the
221 file COPYING for details.
222 .PP
223 A Web site is available at for more information on the LTTng
224 project.
225 .PP
226 You can also find our git tree at
227 .PP
228 Mailing lists for support and development: <>.
229 .PP
230 You can find us on IRC server (OFTC) in #lttng.
231 .PP
232 .SH "THANKS"
234 .PP
235 Thanks to Yannick Brosseau without whom this project would never have been so
236 lean and mean! Also thanks to the Ericsson teams working on tracing which helped
237 us greatly with detailed bug reports and unusual test cases.
239 Thanks to our beloved packager Alexandre Montplaisir-Goncalves (Ubuntu and PPA
240 maintainer) and Jon Bernard for our Debian packages.
242 Special thanks to Michel Dagenais and the DORSAL laboratory at Polytechnique de
243 Montreal for the LTTng journey.
244 .PP
247 .PP
248 lttng-tools was originally written by Mathieu Desnoyers, Julien Desfossez and
249 David Goulet. More people have since contributed to it. It is currently
250 maintained by Jérémie Galarneau <>.
251 .PP
This page took 0.063793 seconds and 4 git commands to generate.