[ltt-dev] [UST PATCH] Fix variable declaration of the clock source
David Goulet
david.goulet at polymtl.ca
Fri Jan 14 11:14:53 EST 2011
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 <david.goulet at polymtl.ca>
---
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
More information about the lttng-dev
mailing list