Hi Jonathan,

I need a windows library (+ sample code that uses it) that can read events from a pre-recorded CTF file created by ltt-ng (metadata, channels) 
I think (not sure) that compiling babeltrace (e.g 1.5.23) with Mingw is not simple. 
As a start, the bootstrap, cannot run under windows.

Thank you,
Zvika 
  



On Thu, Jun 13, 2019 at 6:38 PM Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com> wrote:
Hi,

> Can you please estimate when version 2 will be released ?

When it is ready. A lot of work was done on that side in the last 6 month, the
list of bugs and stuff to get done is shrinking everyday.

> Can you please provide sample code that uses Babeltrace to read metadata,
> channel ?

The source code for decoding the metadata TSDL is available here [1] if I'm not
mistaken. The header is only the tip of the iceberg.

[1] https://github.com/efficios/babeltrace/tree/stable-1.5/formats/ctf/metadata

I'm not sure if we expose the metadata information directly to the API.

See [2] for the API documentation of babeltrace 1.5

[2] http://git.efficios.com/?p=babeltrace.git;a=blob;f=doc/API.txt;h=e13e6adf3545d306e36c2496dd2feb50479d1eea

> > >
> > > I want to write a simple babeltrace for windows.
> >

I'm not convinced that rewriting an open source project is the right way to go
about that. Even more when there is already efforts being conducted for supporting
Windows.

What is the end goal here? What are you trying to achieve?

Do you want a basic cli that can read traces and output text trace?
Do you want to build a tool around ctf and need a reader/writer lib?

Please provide context so that we can help you achieve your goal.

Cheers
--
Jonathan Rajotte-Julien
EfficiOS