projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove trace clock warning on non x86 systems
[ust.git]
/
include
/
ust
/
clock.h
diff --git
a/include/ust/clock.h
b/include/ust/clock.h
index 5e558f8e767a44c21d34e9d90161e504fe7540b3..22d2efc65c9666905ff896d0fac4c89a8bbd2462 100644
(file)
--- a/
include/ust/clock.h
+++ b/
include/ust/clock.h
@@
-74,20
+74,24
@@
static __inline__ u64 trace_clock_read64(void)
return retval;
}
return retval;
}
-
+#if __i386__ || __x86_64__
static __inline__ u64 trace_clock_frequency(void)
{
struct timespec ts;
union lttng_timespec *lts = (union lttng_timespec *) &ts;
static __inline__ u64 trace_clock_frequency(void)
{
struct timespec ts;
union lttng_timespec *lts = (union lttng_timespec *) &ts;
-#if __i386__ || __x86_64__
if (likely(ust_clock_source == CLOCK_TRACE)) {
clock_gettime(CLOCK_TRACE_FREQ, &ts);
return lts->lttng_ts;
}
if (likely(ust_clock_source == CLOCK_TRACE)) {
clock_gettime(CLOCK_TRACE_FREQ, &ts);
return lts->lttng_ts;
}
-#endif
return 1000000000LL;
}
return 1000000000LL;
}
+#else /* #if __i386__ || __x86_64__ */
+static __inline__ u64 trace_clock_frequency(void)
+{
+ return 1000000000LL;
+}
+#endif /* #else #if __i386__ || __x86_64__ */
static __inline__ u32 trace_clock_freq_scale(void)
{
static __inline__ u32 trace_clock_freq_scale(void)
{
This page took
0.022725 seconds
and
4
git commands to generate.