X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Flib%2Flttng-ust-common%2Fust-common.c;h=1aee7ac7a7a99f4b47ce557ea68c9ab09eb80481;hb=26639d02f4780914e38a49eccb5e712645129c6e;hp=e163383d2b458bca3b9386f91b680cb0da825ea9;hpb=fca97dfd73a96bbf964c39e7f3a21fe70cccee96;p=lttng-ust.git diff --git a/src/lib/lttng-ust-common/ust-common.c b/src/lib/lttng-ust-common/ust-common.c index e163383d..1aee7ac7 100644 --- a/src/lib/lttng-ust-common/ust-common.c +++ b/src/lib/lttng-ust-common/ust-common.c @@ -11,6 +11,8 @@ #include "common/getenv.h" #include "lib/lttng-ust-common/fd-tracker.h" +#include "lib/lttng-ust-common/clock.h" +#include "lib/lttng-ust-common/getcpu.h" /* * The liblttng-ust-common constructor, initialize the internal shared state. @@ -24,4 +26,19 @@ void lttng_ust_common_ctor(void) * Initialize the shared state of the fd tracker. */ lttng_ust_fd_tracker_init(); + + /* + * Initialize the potential user-provided clock plugin. + */ + lttng_ust_clock_init(); + + /* + * Initialize the potential user-provided getcpu plugin. + */ + lttng_ust_getcpu_plugin_init(); +} + +void lttng_ust_common_alloc_tls(void) +{ + lttng_ust_fd_tracker_alloc_tls(); }