+ uint64_t vpid;
+
+ scope = bt_ctf_get_top_level_scope(event, BT_STREAM_EVENT_CONTEXT);
+ vpid = bt_ctf_get_int64(bt_ctf_get_field(event,
+ scope, "_vpid"));
+ if (bt_ctf_field_get_error()) {
+ return -1ULL;
+ }
+
+ return vpid;
+}
+
+uint64_t get_context_vppid(const struct bt_ctf_event *event)
+{
+ const struct definition *scope;
+ uint64_t vppid;
+
+ scope = bt_ctf_get_top_level_scope(event, BT_STREAM_EVENT_CONTEXT);
+ vppid = bt_ctf_get_int64(bt_ctf_get_field(event,
+ scope, "_vppid"));
+ if (bt_ctf_field_get_error()) {
+ return -1ULL;
+ }
+
+ return vppid;
+}
+
+char *get_context_comm(const struct bt_ctf_event *event)
+{
+ const struct bt_definition *scope;