X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf%2Fevents.h;h=419c4c8df0f050635b4cd49d863c69266bbbd58a;hp=1cfa9e3b39cd6f37d63b004db5eaa7d3d8a5177d;hb=03798a93f959f6c694fe98f5647481947607c604;hpb=fef0e5211cd1cb9a2acb5dad6045d15cfd75fe5b diff --git a/include/babeltrace/ctf/events.h b/include/babeltrace/ctf/events.h index 1cfa9e3b..419c4c8d 100644 --- a/include/babeltrace/ctf/events.h +++ b/include/babeltrace/ctf/events.h @@ -25,6 +25,7 @@ #include #include +#include struct definition; struct bt_ctf_event; @@ -89,16 +90,16 @@ const struct definition *bt_ctf_get_top_level_scope(const struct bt_ctf_event *e 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_timestamp: 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_timestamp(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_real_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); +uint64_t bt_ctf_get_real_timestamp(const struct bt_ctf_event *event); /* * bt_ctf_get_field_list: set list pointer to an array of definition