[lttng-dev] Usage example of libbabeltrace (babeltrace2) to read CTF traces from a GUI

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Mon Jun 14 16:00:47 EDT 2021


Hi Philippe, Hi Jeremie,

Steven is interested to use libbabeltrace as a CTF trace reader in the KernelShark
project. It's a GUI which shows Linux kernel traces.

He notices that most of the documented usage examples of the libbabeltrace API
focus on use-cases where a custom trace format is converted into CTF.

I know that the babeltrace2 program is the main user of libbabeltrace at this
point, and that it reads CTF as source.

For using libbabeltrace as CTF reader for a GUI, what would be the best examples
to look at as starting point ? Perhaps the babeltrace2 binary, or just adapt a
smaller example program and change the custom trace format source to "ctf.fs" ?
Or anything else ?

Thanks,

Mathieu

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com


More information about the lttng-dev mailing list