/*
* thread local storage to store the last error that occured
* while reading a field, this variable must be accessed by
- * bt_ctf_field_error only
+ * bt_ctf_field_get_error only
*/
__thread int bt_ctf_last_field_error = 0;
return ret;
}
-uint64_t bt_ctf_get_real_timestamp(const struct bt_ctf_event *ctf_event)
+uint64_t bt_ctf_get_timestamp(const struct bt_ctf_event *ctf_event)
{
struct ctf_event_definition *event = ctf_event->parent;
if (event && event->stream->has_timestamp)
return -1ULL;
}
-uint64_t bt_ctf_get_cycles_timestamp(const struct bt_ctf_event *ctf_event)
+uint64_t bt_ctf_get_cycles(const struct bt_ctf_event *ctf_event)
{
struct ctf_event_definition *event = ctf_event->parent;
if (event && event->stream->has_timestamp)
uint64_t bt_ctf_get_uint64(const struct definition *field)
{
- unsigned int ret = 0;
+ uint64_t ret = 0;
if (field && bt_ctf_field_type(field) == CTF_TYPE_INTEGER)
ret = get_unsigned_int(field);
int64_t bt_ctf_get_int64(const struct definition *field)
{
- int ret = 0;
+ int64_t ret = 0;
if (field && bt_ctf_field_type(field) == CTF_TYPE_INTEGER)
ret = get_signed_int(field);