projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle negative time and offset from Epoch
[babeltrace.git]
/
include
/
babeltrace
/
ctf-ir
/
metadata.h
diff --git
a/include/babeltrace/ctf-ir/metadata.h
b/include/babeltrace/ctf-ir/metadata.h
index bc685801daf75617d62cd8bbafdf5caad7ed4ff5..187cfdbcf9e3359f9f6ec330fe3bf8121520eb10 100644
(file)
--- a/
include/babeltrace/ctf-ir/metadata.h
+++ b/
include/babeltrace/ctf-ir/metadata.h
@@
-111,10
+111,14
@@
struct ctf_clock {
/*
* The offset from Epoch is: offset_s + (offset * (1/freq))
* Coarse clock offset from Epoch (in seconds).
/*
* The offset from Epoch is: offset_s + (offset * (1/freq))
* Coarse clock offset from Epoch (in seconds).
+ * It can be negative.
*/
*/
- uint64_t offset_s;
- /* Fine clock offset from Epoch, in (1/freq) units. */
- uint64_t offset;
+ int64_t offset_s;
+ /*
+ * Fine clock offset from Epoch, in (1/freq) units.
+ * It can be negative.
+ */
+ int64_t offset;
int absolute;
enum { /* Fields populated mask */
int absolute;
enum { /* Fields populated mask */
This page took
0.023385 seconds
and
4
git commands to generate.