X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=liblttng-ust%2Fclock.h;h=23294d2b8c2fdf771d043e775b83664ab3d19549;hb=79dfbf429c229ef733c5d8691a681edb91bee871;hp=ed191b0bf9b7ca4b75a55ddbb17682e052b0ad4c;hpb=35897f8b2d311b756b81657dad9c53ef1c0fad8a;p=lttng-ust.git diff --git a/liblttng-ust/clock.h b/liblttng-ust/clock.h index ed191b0b..23294d2b 100644 --- a/liblttng-ust/clock.h +++ b/liblttng-ust/clock.h @@ -39,16 +39,9 @@ static __inline__ uint64_t trace_clock_read64(void) struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); - return (ts.tv_sec * 1000000000) + ts.tv_nsec; + return ((uint64_t) ts.tv_sec * 1000000000ULL) + ts.tv_nsec; } -#if __i386__ || __x86_64__ -static __inline__ uint64_t trace_clock_frequency(void) -{ - return 1000000000LL; -} -#endif /* #else #if __i386__ || __x86_64__ */ - static __inline__ uint32_t trace_clock_freq_scale(void) { return 1;