Commit | Line | Data |
---|---|---|
e6142f2e | 1 | /* |
ab5be9fa | 2 | * Copyright (C) 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com> |
e6142f2e | 3 | * |
ab5be9fa | 4 | * SPDX-License-Identifier: GPL-2.0-only |
e6142f2e | 5 | * |
e6142f2e JG |
6 | */ |
7 | ||
a3bc3918 | 8 | #include "version.h" |
e6142f2e | 9 | #include "sessiond-config.h" |
e6142f2e JG |
10 | #include "lttng-ust-ctl.h" |
11 | #include <common/defaults.h> | |
12 | #include <limits.h> | |
e6142f2e JG |
13 | #include <ctype.h> |
14 | #include <common/error.h> | |
15 | #include <common/utils.h> | |
edf4b93e | 16 | #include <common/compat/errno.h> |
e6142f2e JG |
17 | #include <common/compat/getenv.h> |
18 | ||
19 | static | |
20 | struct sessiond_config sessiond_config_build_defaults = { | |
21 | .quiet = false, | |
22 | .verbose = 0, | |
23 | .verbose_consumer = 0, | |
24 | ||
2288467f | 25 | .agent_tcp_port = { .begin = DEFAULT_AGENT_TCP_PORT_RANGE_BEGIN, .end = DEFAULT_AGENT_TCP_PORT_RANGE_END }, |
761ffce2 FD |
26 | .event_notifier_buffer_size_kernel = DEFAULT_EVENT_NOTIFIER_ERROR_COUNT_MAP_SIZE, |
27 | .event_notifier_buffer_size_userspace = DEFAULT_EVENT_NOTIFIER_ERROR_COUNT_MAP_SIZE, | |
e6142f2e JG |
28 | .app_socket_timeout = DEFAULT_APP_SOCKET_RW_TIMEOUT, |
29 | ||
30 | .no_kernel = false, | |
31 | .background = false, | |
32 | .daemonize = false, | |
33 | .sig_parent = false, | |
34 | ||
b53d4e59 | 35 | .tracing_group_name.value = (char *) DEFAULT_TRACING_GROUP, |
e6142f2e JG |
36 | .kmod_probes_list.value = NULL, |
37 | .kmod_extra_probes_list.value = NULL, | |
38 | ||
39 | .rundir.value = NULL, | |
40 | ||
41 | .apps_unix_sock_path.value = NULL, | |
42 | .client_unix_sock_path.value = NULL, | |
43 | .wait_shm_path.value = NULL, | |
44 | .health_unix_sock_path.value = NULL, | |
45 | .lttng_ust_clock_plugin.value = NULL, | |
46 | .pid_file_path.value = NULL, | |
47 | .lock_file_path.value = NULL, | |
48 | .agent_port_file_path.value = NULL, | |
49 | .load_session_path.value = NULL, | |
50 | ||
51 | .consumerd32_path.value = NULL, | |
52 | .consumerd32_bin_path.value = NULL, | |
53 | .consumerd32_lib_dir.value = NULL, | |
54 | .consumerd32_err_unix_sock_path.value = NULL, | |
55 | .consumerd32_cmd_unix_sock_path.value = NULL, | |
56 | ||
57 | .consumerd64_path.value = NULL, | |
58 | .consumerd64_bin_path.value = NULL, | |
59 | .consumerd64_lib_dir.value = NULL, | |
60 | .consumerd64_err_unix_sock_path.value = NULL, | |
61 | .consumerd64_cmd_unix_sock_path.value = NULL, | |
62 | ||
63 | .kconsumerd_path.value = NULL, | |
64 | .kconsumerd_err_unix_sock_path.value = NULL, | |
65 | .kconsumerd_cmd_unix_sock_path.value = NULL, | |
66 | }; | |
67 | ||
68 | static | |
69 | void config_string_fini(struct config_string *str) | |
70 | { | |
71 | config_string_set(str, NULL); | |
72 | } | |
73 | ||
74 | static | |
75 | void config_string_set_static(struct config_string *config_str, | |
76 | const char *value) | |
77 | { | |
78 | config_string_set(config_str, (char *) value); | |
79 | config_str->should_free = false; | |
80 | } | |
81 | ||
82 | /* Only use for dynamically-allocated strings. */ | |
e6142f2e JG |
83 | void config_string_set(struct config_string *config_str, char *value) |
84 | { | |
a0377dfe | 85 | LTTNG_ASSERT(config_str); |
e6142f2e JG |
86 | if (config_str->should_free) { |
87 | free(config_str->value); | |
88 | config_str->should_free = false; | |
89 | } | |
90 | ||
91 | config_str->should_free = !!value; | |
92 | config_str->value = value; | |
93 | } | |
94 | ||
e6142f2e JG |
95 | int sessiond_config_apply_env_config(struct sessiond_config *config) |
96 | { | |
97 | int ret = 0; | |
98 | const char *env_value; | |
99 | ||
100 | env_value = getenv(DEFAULT_APP_SOCKET_TIMEOUT_ENV); | |
101 | if (env_value) { | |
102 | char *endptr; | |
103 | long int_val; | |
104 | ||
105 | errno = 0; | |
106 | int_val = strtoul(env_value, &endptr, 0); | |
107 | if (errno != 0 || int_val > INT_MAX || | |
108 | (int_val < 0 && int_val != -1)) { | |
109 | ERR("Invalid value \"%s\" used for \"%s\" environment variable", | |
110 | env_value, DEFAULT_APP_SOCKET_TIMEOUT_ENV); | |
111 | ret = -1; | |
112 | goto end; | |
113 | } | |
114 | ||
115 | config->app_socket_timeout = int_val; | |
116 | } | |
117 | ||
118 | env_value = lttng_secure_getenv("LTTNG_CONSUMERD32_BIN"); | |
119 | if (env_value) { | |
120 | config_string_set_static(&config->consumerd32_bin_path, | |
121 | env_value); | |
122 | } | |
123 | env_value = lttng_secure_getenv("LTTNG_CONSUMERD64_BIN"); | |
124 | if (env_value) { | |
125 | config_string_set_static(&config->consumerd64_bin_path, | |
126 | env_value); | |
127 | } | |
128 | ||
129 | env_value = lttng_secure_getenv("LTTNG_CONSUMERD32_LIBDIR"); | |
130 | if (env_value) { | |
131 | config_string_set_static(&config->consumerd32_lib_dir, | |
132 | env_value); | |
133 | } | |
134 | env_value = lttng_secure_getenv("LTTNG_CONSUMERD64_LIBDIR"); | |
135 | if (env_value) { | |
136 | config_string_set_static(&config->consumerd64_lib_dir, | |
137 | env_value); | |
138 | } | |
139 | ||
140 | env_value = lttng_secure_getenv("LTTNG_UST_CLOCK_PLUGIN"); | |
141 | if (env_value) { | |
142 | config_string_set_static(&config->lttng_ust_clock_plugin, | |
143 | env_value); | |
144 | } | |
145 | ||
146 | env_value = lttng_secure_getenv(DEFAULT_LTTNG_KMOD_PROBES); | |
147 | if (env_value) { | |
148 | config_string_set_static(&config->kmod_probes_list, | |
149 | env_value); | |
150 | } | |
151 | ||
152 | env_value = lttng_secure_getenv(DEFAULT_LTTNG_EXTRA_KMOD_PROBES); | |
153 | if (env_value) { | |
154 | config_string_set_static(&config->kmod_extra_probes_list, | |
155 | env_value); | |
156 | } | |
157 | end: | |
158 | return ret; | |
159 | } | |
160 | ||
161 | static | |
162 | int config_set_paths_root(struct sessiond_config *config) | |
163 | { | |
164 | int ret = 0; | |
165 | ||
166 | config_string_set(&config->rundir, strdup(DEFAULT_LTTNG_RUNDIR)); | |
167 | if (!config->rundir.value) { | |
168 | ERR("Failed to set rundir"); | |
169 | ret = -1; | |
170 | goto end; | |
171 | } | |
172 | ||
173 | config_string_set_static(&config->apps_unix_sock_path, | |
174 | DEFAULT_GLOBAL_APPS_UNIX_SOCK); | |
175 | config_string_set_static(&config->client_unix_sock_path, | |
176 | DEFAULT_GLOBAL_CLIENT_UNIX_SOCK); | |
177 | config_string_set_static(&config->wait_shm_path, | |
178 | DEFAULT_GLOBAL_APPS_WAIT_SHM_PATH); | |
179 | config_string_set_static(&config->health_unix_sock_path, | |
180 | DEFAULT_GLOBAL_HEALTH_UNIX_SOCK); | |
e6142f2e JG |
181 | end: |
182 | return ret; | |
183 | } | |
184 | ||
185 | static | |
186 | int config_set_paths_non_root(struct sessiond_config *config) | |
187 | { | |
188 | int ret = 0; | |
189 | const char *home_path = utils_get_home_dir(); | |
190 | char *str; | |
191 | ||
192 | if (home_path == NULL) { | |
193 | ERR("Can't get HOME directory for sockets creation."); | |
194 | ret = -1; | |
195 | goto end; | |
196 | } | |
197 | ||
198 | /* | |
199 | * Create rundir from home path. This will create something like | |
200 | * $HOME/.lttng | |
201 | */ | |
202 | ret = asprintf(&str, DEFAULT_LTTNG_HOME_RUNDIR, home_path); | |
203 | if (ret < 0) { | |
204 | ERR("Failed to set rundir"); | |
205 | goto end; | |
206 | } | |
207 | config_string_set(&config->rundir, str); | |
208 | str = NULL; | |
209 | ||
210 | ret = asprintf(&str, DEFAULT_HOME_APPS_UNIX_SOCK, home_path); | |
211 | if (ret < 0) { | |
212 | ERR("Failed to set default home apps unix socket path"); | |
213 | goto end; | |
214 | } | |
215 | config_string_set(&config->apps_unix_sock_path, str); | |
216 | str = NULL; | |
217 | ||
218 | ret = asprintf(&str, DEFAULT_HOME_CLIENT_UNIX_SOCK, home_path); | |
219 | if (ret < 0) { | |
220 | ERR("Failed to set default home client unix socket path"); | |
221 | goto end; | |
222 | } | |
223 | config_string_set(&config->client_unix_sock_path, str); | |
224 | str = NULL; | |
225 | ||
226 | ret = asprintf(&str, DEFAULT_HOME_APPS_WAIT_SHM_PATH, getuid()); | |
227 | if (ret < 0) { | |
228 | ERR("Failed to set default home apps wait shm path"); | |
229 | goto end; | |
230 | } | |
231 | config_string_set(&config->wait_shm_path, str); | |
232 | str = NULL; | |
233 | ||
234 | ret = asprintf(&str, DEFAULT_HOME_HEALTH_UNIX_SOCK, home_path); | |
235 | if (ret < 0) { | |
236 | ERR("Failed to set default home health UNIX socket path"); | |
237 | goto end; | |
238 | } | |
239 | config_string_set(&config->health_unix_sock_path, str); | |
240 | str = NULL; | |
241 | ||
242 | ret = 0; | |
243 | end: | |
244 | return ret; | |
245 | } | |
246 | ||
e6142f2e JG |
247 | int sessiond_config_init(struct sessiond_config *config) |
248 | { | |
249 | int ret; | |
250 | bool is_root = (getuid() == 0); | |
251 | char *str; | |
252 | ||
a0377dfe | 253 | LTTNG_ASSERT(config); |
e6142f2e JG |
254 | memcpy(config, &sessiond_config_build_defaults, sizeof(*config)); |
255 | ||
256 | if (is_root) { | |
257 | ret = config_set_paths_root(config); | |
258 | } else { | |
259 | ret = config_set_paths_non_root(config); | |
260 | } | |
2a9f757b | 261 | if (ret < 0) { |
c9a2957d | 262 | goto error; |
2a9f757b | 263 | } |
e6142f2e JG |
264 | |
265 | /* 32 bits consumerd path setup */ | |
266 | ret = asprintf(&str, DEFAULT_USTCONSUMERD32_PATH, | |
267 | config->rundir.value); | |
268 | if (ret < 0) { | |
269 | ERR("Failed to set 32-bit consumer path"); | |
c9a2957d | 270 | goto error; |
e6142f2e JG |
271 | } |
272 | config_string_set(&config->consumerd32_path, str); | |
273 | str = NULL; | |
274 | ||
275 | ret = asprintf(&str, DEFAULT_USTCONSUMERD32_ERR_SOCK_PATH, | |
276 | config->rundir.value); | |
277 | if (ret < 0) { | |
278 | ERR("Failed to set 32-bit consumer error socket path"); | |
c9a2957d | 279 | goto error; |
e6142f2e JG |
280 | } |
281 | config_string_set(&config->consumerd32_err_unix_sock_path, str); | |
282 | str = NULL; | |
283 | ||
284 | ret = asprintf(&str, DEFAULT_USTCONSUMERD32_CMD_SOCK_PATH, | |
285 | config->rundir.value); | |
286 | if (ret < 0) { | |
287 | ERR("Failed to set 32-bit consumer command socket path"); | |
c9a2957d | 288 | goto error; |
e6142f2e JG |
289 | } |
290 | config_string_set(&config->consumerd32_cmd_unix_sock_path, str); | |
291 | str = NULL; | |
292 | ||
293 | /* 64 bits consumerd path setup */ | |
294 | ret = asprintf(&str, DEFAULT_USTCONSUMERD64_PATH, | |
295 | config->rundir.value); | |
296 | if (ret < 0) { | |
297 | ERR("Failed to set 64-bit consumer path"); | |
c9a2957d | 298 | goto error; |
e6142f2e JG |
299 | } |
300 | config_string_set(&config->consumerd64_path, str); | |
301 | str = NULL; | |
302 | ||
303 | ret = asprintf(&str, DEFAULT_USTCONSUMERD64_ERR_SOCK_PATH, | |
304 | config->rundir.value); | |
305 | if (ret < 0) { | |
306 | ERR("Failed to set 64-bit consumer error socket path"); | |
c9a2957d | 307 | goto error; |
e6142f2e JG |
308 | } |
309 | config_string_set(&config->consumerd64_err_unix_sock_path, str); | |
310 | str = NULL; | |
311 | ||
312 | ret = asprintf(&str, DEFAULT_USTCONSUMERD64_CMD_SOCK_PATH, | |
313 | config->rundir.value); | |
314 | if (ret < 0) { | |
315 | ERR("Failed to set 64-bit consumer command socket path"); | |
c9a2957d | 316 | goto error; |
e6142f2e JG |
317 | } |
318 | config_string_set(&config->consumerd64_cmd_unix_sock_path, str); | |
319 | str = NULL; | |
320 | ||
321 | /* kconsumerd consumerd path setup */ | |
322 | ret = asprintf(&str, DEFAULT_KCONSUMERD_PATH, | |
323 | config->rundir.value); | |
324 | if (ret < 0) { | |
325 | ERR("Failed to set kernel consumer path"); | |
c9a2957d | 326 | goto error; |
e6142f2e JG |
327 | } |
328 | config_string_set(&config->kconsumerd_path, str); | |
329 | str = NULL; | |
330 | ||
4a08b740 JG |
331 | ret = asprintf(&str, DEFAULT_KCONSUMERD_ERR_SOCK_PATH, |
332 | config->rundir.value); | |
333 | if (ret < 0) { | |
334 | ERR("Failed to set kernel consumer error socket path"); | |
c9a2957d | 335 | goto error; |
4a08b740 JG |
336 | } |
337 | config_string_set(&config->kconsumerd_err_unix_sock_path, str); | |
338 | str = NULL; | |
339 | ||
340 | ret = asprintf(&str, DEFAULT_KCONSUMERD_CMD_SOCK_PATH, | |
341 | config->rundir.value); | |
342 | if (ret < 0) { | |
343 | ERR("Failed to set kernel consumer command socket path"); | |
c9a2957d | 344 | goto error; |
4a08b740 JG |
345 | } |
346 | config_string_set(&config->kconsumerd_cmd_unix_sock_path, str); | |
347 | str = NULL; | |
348 | ||
e6142f2e JG |
349 | ret = asprintf(&str, "%s/%s", config->rundir.value, |
350 | DEFAULT_LTTNG_SESSIOND_PIDFILE); | |
351 | if (ret < 0) { | |
352 | ERR("Failed to set PID file path"); | |
c9a2957d | 353 | goto error; |
e6142f2e JG |
354 | } |
355 | config_string_set(&config->pid_file_path, str); | |
356 | str = NULL; | |
357 | ||
358 | ret = asprintf(&str, "%s/%s", config->rundir.value, | |
359 | DEFAULT_LTTNG_SESSIOND_LOCKFILE); | |
360 | if (ret < 0) { | |
361 | ERR("Failed to set lock file path"); | |
c9a2957d | 362 | goto error; |
e6142f2e JG |
363 | } |
364 | config_string_set(&config->lock_file_path, str); | |
365 | str = NULL; | |
366 | ||
367 | ret = asprintf(&str, "%s/%s", config->rundir.value, | |
368 | DEFAULT_LTTNG_SESSIOND_AGENTPORT_FILE); | |
369 | if (ret < 0) { | |
370 | ERR("Failed to set agent port file path"); | |
c9a2957d | 371 | goto error; |
e6142f2e JG |
372 | } |
373 | config_string_set(&config->agent_port_file_path, str); | |
374 | str = NULL; | |
375 | ||
376 | /* | |
377 | * Allow INSTALL_BIN_PATH to be used as a target path for the | |
378 | * native architecture size consumer if CONFIG_CONSUMER*_PATH | |
379 | * has not been defined. | |
380 | */ | |
381 | #if (CAA_BITS_PER_LONG == 32) | |
382 | config_string_set_static(&config->consumerd32_bin_path, | |
383 | INSTALL_BIN_PATH "/" DEFAULT_CONSUMERD_FILE); | |
384 | config_string_set_static(&config->consumerd32_lib_dir, | |
385 | INSTALL_LIB_PATH); | |
386 | #elif (CAA_BITS_PER_LONG == 64) | |
387 | config_string_set_static(&config->consumerd64_bin_path, | |
388 | INSTALL_BIN_PATH "/" DEFAULT_CONSUMERD_FILE); | |
389 | config_string_set_static(&config->consumerd64_lib_dir, | |
390 | INSTALL_LIB_PATH); | |
391 | #else | |
392 | #error "Unknown bitness" | |
393 | #endif | |
394 | ret = 0; | |
c9a2957d JG |
395 | return ret; |
396 | error: | |
397 | sessiond_config_fini(config); | |
e6142f2e JG |
398 | return ret; |
399 | } | |
400 | ||
e6142f2e JG |
401 | void sessiond_config_fini(struct sessiond_config *config) |
402 | { | |
403 | config_string_fini(&config->tracing_group_name); | |
404 | config_string_fini(&config->kmod_probes_list); | |
405 | config_string_fini(&config->kmod_extra_probes_list); | |
16ffecdb | 406 | config_string_fini(&config->rundir); |
e6142f2e JG |
407 | config_string_fini(&config->apps_unix_sock_path); |
408 | config_string_fini(&config->client_unix_sock_path); | |
409 | config_string_fini(&config->wait_shm_path); | |
410 | config_string_fini(&config->health_unix_sock_path); | |
411 | config_string_fini(&config->lttng_ust_clock_plugin); | |
412 | config_string_fini(&config->pid_file_path); | |
413 | config_string_fini(&config->lock_file_path); | |
414 | config_string_fini(&config->load_session_path); | |
415 | config_string_fini(&config->agent_port_file_path); | |
416 | config_string_fini(&config->consumerd32_path); | |
417 | config_string_fini(&config->consumerd32_bin_path); | |
418 | config_string_fini(&config->consumerd32_lib_dir); | |
419 | config_string_fini(&config->consumerd32_err_unix_sock_path); | |
420 | config_string_fini(&config->consumerd32_cmd_unix_sock_path); | |
421 | config_string_fini(&config->consumerd64_path); | |
422 | config_string_fini(&config->consumerd64_bin_path); | |
423 | config_string_fini(&config->consumerd64_lib_dir); | |
424 | config_string_fini(&config->consumerd64_err_unix_sock_path); | |
425 | config_string_fini(&config->consumerd64_cmd_unix_sock_path); | |
426 | config_string_fini(&config->kconsumerd_path); | |
427 | config_string_fini(&config->kconsumerd_err_unix_sock_path); | |
428 | config_string_fini(&config->kconsumerd_cmd_unix_sock_path); | |
429 | } | |
430 | ||
431 | static | |
432 | int resolve_path(struct config_string *path) | |
433 | { | |
434 | int ret = 0; | |
435 | char *absolute_path; | |
436 | ||
437 | if (!path->value || path->value[0] == '/') { | |
438 | goto end; | |
439 | } | |
440 | ||
441 | absolute_path = utils_expand_path(path->value); | |
442 | if (!absolute_path) { | |
443 | ret = -1; | |
444 | goto end; | |
445 | } | |
446 | ||
447 | config_string_set(path, absolute_path); | |
448 | end: | |
449 | return ret; | |
450 | } | |
451 | ||
452 | #define RESOLVE_CHECK(path_config_str) \ | |
453 | if (resolve_path(path_config_str)) \ | |
454 | return -1 | |
455 | ||
e6142f2e JG |
456 | int sessiond_config_resolve_paths(struct sessiond_config *config) |
457 | { | |
458 | RESOLVE_CHECK(&config->apps_unix_sock_path); | |
459 | RESOLVE_CHECK(&config->client_unix_sock_path); | |
460 | RESOLVE_CHECK(&config->wait_shm_path); | |
461 | RESOLVE_CHECK(&config->health_unix_sock_path); | |
462 | RESOLVE_CHECK(&config->lttng_ust_clock_plugin); | |
463 | RESOLVE_CHECK(&config->pid_file_path); | |
464 | RESOLVE_CHECK(&config->lock_file_path); | |
465 | RESOLVE_CHECK(&config->load_session_path); | |
466 | RESOLVE_CHECK(&config->agent_port_file_path); | |
467 | RESOLVE_CHECK(&config->consumerd32_path); | |
468 | RESOLVE_CHECK(&config->consumerd32_bin_path); | |
469 | RESOLVE_CHECK(&config->consumerd32_lib_dir); | |
470 | RESOLVE_CHECK(&config->consumerd32_err_unix_sock_path); | |
471 | RESOLVE_CHECK(&config->consumerd32_cmd_unix_sock_path); | |
472 | RESOLVE_CHECK(&config->consumerd64_path); | |
473 | RESOLVE_CHECK(&config->consumerd64_bin_path); | |
474 | RESOLVE_CHECK(&config->consumerd64_lib_dir); | |
475 | RESOLVE_CHECK(&config->consumerd64_err_unix_sock_path); | |
476 | RESOLVE_CHECK(&config->consumerd64_cmd_unix_sock_path); | |
477 | RESOLVE_CHECK(&config->kconsumerd_path); | |
478 | RESOLVE_CHECK(&config->kconsumerd_err_unix_sock_path); | |
479 | RESOLVE_CHECK(&config->kconsumerd_cmd_unix_sock_path); | |
480 | return 0; | |
481 | } | |
482 | ||
e6142f2e JG |
483 | void sessiond_config_log(struct sessiond_config *config) |
484 | { | |
485 | DBG_NO_LOC("[sessiond configuration]"); | |
a3bc3918 JR |
486 | DBG_NO_LOC("\tversion %s", VERSION); |
487 | if (GIT_VERSION[0] != '\0') { | |
488 | DBG_NO_LOC("\tgit version %s", GIT_VERSION); | |
489 | } | |
490 | if (EXTRA_VERSION_NAME[0] != '\0') { | |
491 | DBG_NO_LOC("\textra version name %s", EXTRA_VERSION_NAME); | |
492 | } | |
493 | if (EXTRA_VERSION_DESCRIPTION[0] != '\0') { | |
494 | DBG_NO_LOC("\textra version description:\n\t%s", EXTRA_VERSION_DESCRIPTION); | |
495 | } | |
7f5ed73a JR |
496 | if (EXTRA_VERSION_PATCHES[0] != '\0') { |
497 | DBG_NO_LOC("\textra version patches:\n\t%s", EXTRA_VERSION_PATCHES); | |
498 | } | |
2ca43cb1 JR |
499 | DBG_NO_LOC("\tverbose: %i", config->verbose); |
500 | DBG_NO_LOC("\tverbose consumer: %i", config->verbose_consumer); | |
501 | DBG_NO_LOC("\tquiet mode: %s", config->quiet ? "True" : "False"); | |
2288467f | 502 | if (config->agent_tcp_port.begin == config->agent_tcp_port.end) { |
2ca43cb1 | 503 | DBG_NO_LOC("\tagent_tcp_port: %i", config->agent_tcp_port.begin); |
2288467f | 504 | } else { |
2ca43cb1 | 505 | DBG_NO_LOC("\tagent_tcp_port: [%i, %i]", |
2288467f JG |
506 | config->agent_tcp_port.begin, |
507 | config->agent_tcp_port.end); | |
508 | } | |
2ca43cb1 JR |
509 | DBG_NO_LOC("\tapplication socket timeout: %i", config->app_socket_timeout); |
510 | DBG_NO_LOC("\tno-kernel: %s", config->no_kernel ? "True" : "False"); | |
511 | DBG_NO_LOC("\tbackground: %s", config->background ? "True" : "False"); | |
512 | DBG_NO_LOC("\tdaemonize: %s", config->daemonize ? "True" : "False"); | |
513 | DBG_NO_LOC("\tsignal parent on start: %s", config->sig_parent ? "True" : "False"); | |
514 | DBG_NO_LOC("\ttracing group name: %s", config->tracing_group_name.value ? : "Unknown"); | |
515 | DBG_NO_LOC("\tkmod_probe_list: %s", config->kmod_probes_list.value ? : "None"); | |
516 | DBG_NO_LOC("\tkmod_extra_probe_list: %s", config->kmod_extra_probes_list.value ? : "None"); | |
517 | DBG_NO_LOC("\trundir: %s", config->rundir.value ? : "Unknown"); | |
518 | DBG_NO_LOC("\tapplication socket path: %s", config->apps_unix_sock_path.value ? : "Unknown"); | |
519 | DBG_NO_LOC("\tclient socket path: %s", config->client_unix_sock_path.value ? : "Unknown"); | |
520 | DBG_NO_LOC("\twait shm path: %s", config->wait_shm_path.value ? : "Unknown"); | |
521 | DBG_NO_LOC("\thealth socket path: %s", config->health_unix_sock_path.value ? : "Unknown"); | |
522 | DBG_NO_LOC("\tLTTNG_UST_CLOCK_PLUGIN: %s", config->lttng_ust_clock_plugin.value ? : "None"); | |
523 | DBG_NO_LOC("\tpid file path: %s", config->pid_file_path.value ? : "Unknown"); | |
524 | DBG_NO_LOC("\tlock file path: %s", config->lock_file_path.value ? : "Unknown"); | |
525 | DBG_NO_LOC("\tsession load path: %s", config->load_session_path.value ? : "None"); | |
526 | DBG_NO_LOC("\tagent port file path: %s", config->agent_port_file_path.value ? : "Unknown"); | |
527 | DBG_NO_LOC("\tconsumerd32 path: %s", config->consumerd32_path.value ? : "Unknown"); | |
528 | DBG_NO_LOC("\tconsumerd32 bin path: %s", config->consumerd32_bin_path.value ? : "Unknown"); | |
529 | DBG_NO_LOC("\tconsumerd32 lib dir: %s", config->consumerd32_lib_dir.value ? : "Unknown"); | |
530 | DBG_NO_LOC("\tconsumerd32 err unix sock path:%s", config->consumerd32_err_unix_sock_path.value ? : "Unknown"); | |
531 | DBG_NO_LOC("\tconsumerd32 cmd unix sock path:%s", config->consumerd32_cmd_unix_sock_path.value ? : "Unknown"); | |
532 | DBG_NO_LOC("\tconsumerd64 path: %s", config->consumerd64_path.value ? : "Unknown"); | |
533 | DBG_NO_LOC("\tconsumerd64 bin path: %s", config->consumerd64_bin_path.value ? : "Unknown"); | |
534 | DBG_NO_LOC("\tconsumerd64 lib dir: %s", config->consumerd64_lib_dir.value ? : "Unknown"); | |
535 | DBG_NO_LOC("\tconsumerd64 err unix sock path:%s", config->consumerd64_err_unix_sock_path.value ? : "Unknown"); | |
536 | DBG_NO_LOC("\tconsumerd64 cmd unix sock path:%s", config->consumerd64_cmd_unix_sock_path.value ? : "Unknown"); | |
537 | DBG_NO_LOC("\tkconsumerd path: %s", config->kconsumerd_path.value ? : "Unknown"); | |
538 | DBG_NO_LOC("\tkconsumerd err unix sock path: %s", config->kconsumerd_err_unix_sock_path.value ? : "Unknown"); | |
539 | DBG_NO_LOC("\tkconsumerd cmd unix sock path: %s", config->kconsumerd_cmd_unix_sock_path.value ? : "Unknown"); | |
e6142f2e | 540 | } |