X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Fevents.c;h=06419a18cf6cff103a0891dcc1183b60bc1d444c;hp=4fa8f3036b7b0364bd6eef2e16205c95de682b0b;hb=03798a93f959f6c694fe98f5647481947607c604;hpb=1f7b01c261b8bd6c2640c0776f0a69865dff0ad8 diff --git a/formats/ctf/events.c b/formats/ctf/events.c index 4fa8f303..06419a18 100644 --- a/formats/ctf/events.c +++ b/formats/ctf/events.c @@ -281,22 +281,20 @@ int bt_ctf_event_get_handle_id(const struct bt_ctf_event *ctf_event) return ret; } -uint64_t bt_ctf_get_timestamp_raw(const struct bt_ctf_event *ctf_event) +uint64_t bt_ctf_get_real_timestamp(const struct bt_ctf_event *ctf_event) { struct ctf_event_definition *event = ctf_event->parent; if (event && event->stream->has_timestamp) - return ctf_get_timestamp_raw(event->stream, - event->stream->timestamp); + return event->stream->real_timestamp; else return -1ULL; } -uint64_t bt_ctf_get_timestamp(const struct bt_ctf_event *ctf_event) +uint64_t bt_ctf_get_cycles_timestamp(const struct bt_ctf_event *ctf_event) { struct ctf_event_definition *event = ctf_event->parent; if (event && event->stream->has_timestamp) - return ctf_get_timestamp(event->stream, - event->stream->timestamp); + return event->stream->cycles_timestamp; else return -1ULL; }