projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ctf.fs: bt_ctf_notif_iter_create(): assert() that all medops exist
[babeltrace.git]
/
include
/
babeltrace
/
format-internal.h
diff --git
a/include/babeltrace/format-internal.h
b/include/babeltrace/format-internal.h
index e0359eacdf95b86caa095b964304c84971430b78..9d5ba3307645edb1d1acd9648e9202b384a4211b 100644
(file)
--- a/
include/babeltrace/format-internal.h
+++ b/
include/babeltrace/format-internal.h
@@
-32,6
+32,7
@@
#include <babeltrace/compat/limits.h>
#include <babeltrace/context-internal.h>
#include <babeltrace/babeltrace-internal.h>
#include <babeltrace/compat/limits.h>
#include <babeltrace/context-internal.h>
#include <babeltrace/babeltrace-internal.h>
+#include <babeltrace/ctf/types.h>
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
extern "C" {
@@
-45,8
+46,20
@@
struct bt_trace_descriptor {
struct trace_collection *collection; /* Container of this trace */
GHashTable *clocks;
struct ctf_clock *single_clock; /* currently supports only one clock */
struct trace_collection *collection; /* Container of this trace */
GHashTable *clocks;
struct ctf_clock *single_clock; /* currently supports only one clock */
+ bool interval_set;
+ struct packet_index_time interval_real; /* Interval of events to consider */
};
};
+static inline void init_trace_descriptor(struct bt_trace_descriptor *td) {
+ if (!td) {
+ return;
+ }
+
+ td->interval_real.timestamp_begin = INT64_MIN;
+ td->interval_real.timestamp_end = INT64_MAX;
+ td->interval_set = false;
+}
+
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
}
#endif
This page took
0.024568 seconds
and
4
git commands to generate.