* [lttng-dev] babeltrace question (bt_struct_declaration_lookup_field_index)
@ 2016-10-29 21:38 Sebastien Boisvert
0 siblings, 0 replies; only message in thread
From: Sebastien Boisvert @ 2016-10-29 21:38 UTC (permalink / raw)
Hi,
I can successfully print the fields of my events by using
stream = ctf_event->parent->stream;
id = stream->event_id;
event = g_ptr_array_index(stream->events_by_id, id);
declaration = event->event_fields->declaration;
fields = event->event_fields->fields;
for (int i = 0; i < fields->len; i++) {
/* ... * /
}
By understanding is that one can use bt_struct_declaration_lookup_field_index to verify if a field exists.
However, I always get -1. Is there an API call to populate the hash ?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-10-29 21:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-29 21:38 [lttng-dev] babeltrace question (bt_struct_declaration_lookup_field_index) Sebastien Boisvert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox