X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust%2Flttng-ust-comm.c;h=cc5188f6112cb744ddd45297973cef532201d9a6;hb=4bc1ccd721114691c6f0dbd65335b3c43c9f895f;hp=378ca21cfc71f354a282fe4a9a521cf77319ef02;hpb=1556a5495c92bdd99e57faa87e21eb0b6f95c3a2;p=lttng-ust.git diff --git a/liblttng-ust/lttng-ust-comm.c b/liblttng-ust/lttng-ust-comm.c index 378ca21c..cc5188f6 100644 --- a/liblttng-ust/lttng-ust-comm.c +++ b/liblttng-ust/lttng-ust-comm.c @@ -20,6 +20,7 @@ */ #define _LGPL_SOURCE +#define _GNU_SOURCE #include #include #include @@ -52,6 +53,8 @@ #include "compat.h" #include "../libringbuffer/tlsfixup.h" #include "lttng-ust-baddr.h" +#include "clock.h" +#include "../libringbuffer/getcpu.h" /* * Has lttng ust comm constructor been called ? @@ -1444,6 +1447,8 @@ void __attribute__((constructor)) lttng_ust_init(void) */ init_usterr(); init_tracepoint(); + lttng_ust_clock_init(); + lttng_ust_getcpu_init(); lttng_ust_baddr_statedump_init(); lttng_ring_buffer_metadata_client_init(); lttng_ring_buffer_client_overwrite_init();