X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf%2Fevents.h;h=419c4c8df0f050635b4cd49d863c69266bbbd58a;hp=30365aaabbafd80d41e2aa6a7f2da7ec87faaff3;hb=03798a93f959f6c694fe98f5647481947607c604;hpb=64c2c2496913d64ddd77343b9651f1f233cda5cf diff --git a/include/babeltrace/ctf/events.h b/include/babeltrace/ctf/events.h index 30365aaa..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 @@ -155,6 +156,12 @@ int bt_ctf_get_int_base(const struct definition *field); */ 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