<div dir="ltr">Hi Jonathan,<div><br></div><div>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) </div><div>I think (not sure) that compiling babeltrace (e.g 1.5.23) with Mingw is not simple. </div><div>As a start, the bootstrap, cannot run under windows.</div><div><br></div><div>Thank you,</div><div>Zvika </div><div>  <br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 13, 2019 at 6:38 PM Jonathan Rajotte-Julien <<a href="mailto:jonathan.rajotte-julien@efficios.com">jonathan.rajotte-julien@efficios.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
> Can you please estimate when version 2 will be released ?<br>
<br>
When it is ready. A lot of work was done on that side in the last 6 month, the<br>
list of bugs and stuff to get done is shrinking everyday.<br>
<br>
> Can you please provide sample code that uses Babeltrace to read metadata,<br>
> channel ?<br>
<br>
The source code for decoding the metadata TSDL is available here [1] if I'm not<br>
mistaken. The header is only the tip of the iceberg.<br>
<br>
[1] <a href="https://github.com/efficios/babeltrace/tree/stable-1.5/formats/ctf/metadata" rel="noreferrer" target="_blank">https://github.com/efficios/babeltrace/tree/stable-1.5/formats/ctf/metadata</a><br>
<br>
I'm not sure if we expose the metadata information directly to the API.<br>
<br>
See [2] for the API documentation of babeltrace 1.5<br>
<br>
[2] <a href="http://git.efficios.com/?p=babeltrace.git;a=blob;f=doc/API.txt;h=e13e6adf3545d306e36c2496dd2feb50479d1eea" rel="noreferrer" target="_blank">http://git.efficios.com/?p=babeltrace.git;a=blob;f=doc/API.txt;h=e13e6adf3545d306e36c2496dd2feb50479d1eea</a><br>
<br>
> > ><br>
> > > I want to write a simple babeltrace for windows.<br>
> ><br>
<br>
I'm not convinced that rewriting an open source project is the right way to go<br>
about that. Even more when there is already efforts being conducted for supporting<br>
Windows.<br>
<br>
What is the end goal here? What are you trying to achieve?<br>
<br>
Do you want a basic cli that can read traces and output text trace?<br>
Do you want to build a tool around ctf and need a reader/writer lib?<br>
<br>
Please provide context so that we can help you achieve your goal.<br>
<br>
Cheers<br>
-- <br>
Jonathan Rajotte-Julien<br>
EfficiOS<br>
</blockquote></div>