X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=libust%2Ftracectl.c;h=e877e6289f7ef0e32ca88c6ab595f7117a81298b;hb=8f09cb9340387a52b483752c5d2d6c36035b26bc;hp=4f016bb08215ae43844adf50f1c651d50716b489;hpb=9c6bb08180ab0a65bbf3d47247a9d36e257fa44a;p=ust.git diff --git a/libust/tracectl.c b/libust/tracectl.c index 4f016bb..e877e62 100644 --- a/libust/tracectl.c +++ b/libust/tracectl.c @@ -74,6 +74,8 @@ static struct cds_list_head ust_socks = CDS_LIST_HEAD_INIT(ust_socks); /* volatile because shared between the listener and the main thread */ int buffers_to_export = 0; +int ust_clock_source; + static long long make_pidunique(void) { s64 retval; @@ -1230,6 +1232,7 @@ free_name: static void __attribute__((constructor)) init() { + struct timespec ts; int result; char* autoprobe_val = NULL; char* subbuffer_size_val = NULL; @@ -1264,7 +1267,7 @@ static void __attribute__((constructor)) init() create_listener(); /* Get clock the clock source type */ - struct timespec ts; + /* Default clock source */ ust_clock_source = CLOCK_TRACE; if (clock_gettime(ust_clock_source, &ts) != 0) {