projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clock: add clock description to metadata
[lttng-ust.git]
/
liblttng-ust
/
clock.h
diff --git
a/liblttng-ust/clock.h
b/liblttng-ust/clock.h
index 23294d2b8c2fdf771d043e775b83664ab3d19549..95e3e43b16d0863f412c10082151f3c924ab9cbe 100644
(file)
--- a/
liblttng-ust/clock.h
+++ b/
liblttng-ust/clock.h
@@
-34,7
+34,8
@@
/* Choosing correct trace clock */
/* Choosing correct trace clock */
-static __inline__ uint64_t trace_clock_read64(void)
+static __inline__
+uint64_t trace_clock_read64(void)
{
struct timespec ts;
{
struct timespec ts;
@@
-42,9
+43,16
@@
static __inline__ uint64_t trace_clock_read64(void)
return ((uint64_t) ts.tv_sec * 1000000000ULL) + ts.tv_nsec;
}
return ((uint64_t) ts.tv_sec * 1000000000ULL) + ts.tv_nsec;
}
-static __inline__ uint32_t trace_clock_freq_scale(void)
+static __inline__
+uint64_t trace_clock_freq(void)
{
{
- return 1;
+ return 1000000000ULL;
+}
+
+static __inline__
+const char *trace_clock_uuid(void)
+{
+ return "CLOCK_MONOTONIC";
}
#endif /* _UST_CLOCK_H */
}
#endif /* _UST_CLOCK_H */
This page took
0.022928 seconds
and
4
git commands to generate.