projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Get rid of clock-raw and use real clock
[babeltrace.git]
/
include
/
babeltrace
/
ctf
/
events.h
diff --git
a/include/babeltrace/ctf/events.h
b/include/babeltrace/ctf/events.h
index 30365aaabbafd80d41e2aa6a7f2da7ec87faaff3..419c4c8df0f050635b4cd49d863c69266bbbd58a 100644
(file)
--- a/
include/babeltrace/ctf/events.h
+++ b/
include/babeltrace/ctf/events.h
@@
-25,6
+25,7
@@
#include <stdint.h>
#include <babeltrace/context.h>
#include <stdint.h>
#include <babeltrace/context.h>
+#include <babeltrace/clock-types.h>
struct definition;
struct bt_ctf_event;
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);
/*
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 i
n
- *
the packet or -1ULL on error
+ * bt_ctf_get_
cycles_timestamp: returns the timestamp of the event as writte
n
+ *
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
/*
* 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);
*/
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
/*
* bt_ctf_get_encoding: return the encoding of an int or a string.
* return a negative value on error
This page took
0.023838 seconds
and
4
git commands to generate.