Move fd-tracker to liblttng-ust-common
[lttng-ust.git] / src / liblttng-ust / 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{
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}
This page took 0.026795 seconds and 4 git commands to generate.