Internal logging lazy-initialization
[lttng-ust.git] / src / lib / lttng-ust-common / ust-common.c
CommitLineData
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
10static
11void lttng_ust_common_init(void)
12 __attribute__((constructor));
13static
14void lttng_ust_common_init(void)
15{
df09bde5
MJ
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.023515 seconds and 4 git commands to generate.