1aee7ac7a7a99f4b47ce557ea68c9ab09eb80481
2 * SPDX-License-Identifier: LGPL-2.1-only
4 * Copyright (C) 2021 Michael Jeanson <mjeanson@efficios.com>
7 #include <lttng/ust-common.h>
9 #include "common/logging.h"
10 #include "common/ust-fd.h"
11 #include "common/getenv.h"
13 #include "lib/lttng-ust-common/fd-tracker.h"
14 #include "lib/lttng-ust-common/clock.h"
15 #include "lib/lttng-ust-common/getcpu.h"
18 * The liblttng-ust-common constructor, initialize the internal shared state.
19 * Libraries linking on liblttng-ust-common should also call this early in
20 * their constructor since there is no reliable way to guarantee the execution
21 * order of constructors across shared library.
23 void lttng_ust_common_ctor(void)
26 * Initialize the shared state of the fd tracker.
28 lttng_ust_fd_tracker_init();
31 * Initialize the potential user-provided clock plugin.
33 lttng_ust_clock_init();
36 * Initialize the potential user-provided getcpu plugin.
38 lttng_ust_getcpu_plugin_init();
41 void lttng_ust_common_alloc_tls(void)
43 lttng_ust_fd_tracker_alloc_tls();
This page took 0.031188 seconds and 5 git commands to generate.