#include <stdint.h>
#include <babeltrace/context.h>
+#include <babeltrace/clock-types.h>
struct definition;
struct bt_ctf_event;
const char *bt_ctf_event_name(const struct bt_ctf_event *event);
/*
- * bt_ctf_get_timestamp_raw: returns the timestamp of the event as written in
- * the packet or -1ULL on error
+ * bt_ctf_get_cycles: returns the timestamp of the event as written
+ * in the packet (in cycles) or -1ULL on error.
*/
-uint64_t bt_ctf_get_timestamp_raw(const struct bt_ctf_event *event);
+uint64_t bt_ctf_get_cycles(const struct bt_ctf_event *event);
/*
- * bt_ctf_get_timestamp: returns the timestamp of the event offsetted with the
- * system clock source or -1ULL on error
+ * bt_ctf_get_timestamp: returns the timestamp of the event offsetted
+ * with the system clock source (in ns) or -1ULL on error
*/
uint64_t bt_ctf_get_timestamp(const struct bt_ctf_event *event);
*/
int bt_ctf_get_int_byte_order(const struct definition *field);
+/*
+ * bt_ctf_get_int_len: return the size, in bits, of an int or a negative
+ * value on error
+ */
+ssize_t bt_ctf_get_int_len(const struct definition *field);
+
/*
* bt_ctf_get_encoding: return the encoding of an int or a string.
* return a negative value on error