The ust_clock_source was static in clock.h header file. Thus, tracectl.c was not able to modify that variable for the trace clock read function. Bad timestamp was always returned if CLOCK_TRACE was not available.
Signed-off-by: David Goulet <[email protected]> --- include/ust/clock.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/ust/clock.h b/include/ust/clock.h index ac0a2d5..db8ceb4 100644 --- a/include/ust/clock.h +++ b/include/ust/clock.h @@ -49,7 +49,7 @@ union lttng_timespec { }; #endif /* __i386__ || __x86_64__ */ -static int ust_clock_source; +int ust_clock_source; /* Choosing correct trace clock */ #if __PPC__ -- 1.7.3.5 _______________________________________________ ltt-dev mailing list [email protected] http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
