How to get the sequence element by using babeltrace c API ?
A message that is not in the archive (sent off-list or not yet received): [email protected]
I dont remember exactly, off the top of my head I think you can do bt_ctf_get_field_list on the field that is ctf_sequence_type and then iterate over each of the resulting fields and use bt_ctf_get_int64 to get the values. Not sure if it is the best way but it works for me.
Btw, is this a ctf_sequence_text or ctf_sequence field in lttng tracepoint? If it is ctf_sequence_text it won't work because there is a bug in the API.
Regards,
Ronan
Quoted 19 lines · 砚汐
Hello,
I found the email address via Google, I sincerely hope that it will not disturb you. :)
I'm using babeltrace API in C. I would like to know if there's an API to
get the *se*quence items when the ctf type isCTF_TYPE_SEQUENCE. I tried thebt_ctf_get_index(), but it returns a bt_definition*, I don't know how to get the char elements of the sequence in the field. Could you give me some suggestions? Thanks very much!BR,
Tina
Quoted 5 lines
_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev