Internal logging lazy-initialization
[lttng-ust.git] / src / lib / lttng-ust-common / ust-common.c
1 /*
2 * SPDX-License-Identifier: LGPL-2.1-only
3 *
4 * Copyright (C) 2021 Michael Jeanson <mjeanson@efficios.com>
5 */
6
7 #include "common/logging.h"
8 #include "common/ust-fd.h"
9
10 static
11 void lttng_ust_common_init(void)
12 __attribute__((constructor));
13 static
14 void lttng_ust_common_init(void)
15 {
16 /*
17 * Initialize the fd-tracker, other libraries using it should also call
18 * this in their constructor in case it gets executed before this one.
19 */
20 lttng_ust_init_fd_tracker();
21 }
This page took 0.032204 seconds and 5 git commands to generate.