Commit | Line | Data |
---|---|---|
df09bde5 MJ |
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 | /* Initialize logging for liblttng-ust-common */ | |
17 | ust_err_init(); | |
18 | ||
19 | /* | |
20 | * Initialize the fd-tracker, other libraries using it should also call | |
21 | * this in their constructor in case it gets executed before this one. | |
22 | */ | |
23 | lttng_ust_init_fd_tracker(); | |
24 | } |