<div dir="auto"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>Hi,<br>
<br>
> I am trying to write a metadata file. I am following <a href="https://diamon.org/ctf/" rel="noreferrer noreferrer" target="_blank">https://diamon.org/ctf/</a>.<br>
> I found one metadata file on GitHub repository<br>
> <a href="https://github.com/efficios/epiphany-examples/tree/barectf-tracing/apps/barectf-tracing/ctf" rel="noreferrer noreferrer" target="_blank">https://github.com/efficios/epiphany-examples/tree/barectf-tracing/apps/barectf-tracing/ctf</a><br>
> <br>
>  Which file format is used for the metadata files?<br>
<br>
Babeltrace understand text based metadata file as long as it conforms to the TSDL<br>
grammar.<br>
<br>
See:<br>
    <a href="https://diamon.org/ctf/#spec7" rel="noreferrer noreferrer" target="_blank">https://diamon.org/ctf/#spec7</a><br>
    <a href="https://diamon.org/ctf/#spec7.4" rel="noreferrer noreferrer" target="_blank">https://diamon.org/ctf/#spec7.4</a><br>
    <a href="https://diamon.org/ctf/#specC" rel="noreferrer noreferrer" target="_blank">https://diamon.org/ctf/#specC</a></blockquote><div>Okay. I was following the above links to writing my own metadata file. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
For an example of metadata generator, you can look at Barectf[1] or<br>
lttng-tools[2]<br>
<br>
[1] <a href="https://github.com/efficios/barectf/blob/a3ebf5855c025a86ebc2d62cbda1338461e84c5a/barectf/tsdl182gen.py" rel="noreferrer noreferrer" target="_blank">https://github.com/efficios/barectf/blob/a3ebf5855c025a86ebc2d62cbda1338461e84c5a/barectf/tsdl182gen.py</a></blockquote><div>I used "barectf config.yaml -m ctf" command. It helpled me generating the metadata file. I looked at some other metadata file but they are binary packetized. The one I generated using barectf is not binary packetized. </div><div><br></div><div>Are these file different?</div><div dir="auto">Will both work the same way?</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
[2] <a href="https://github.com/lttng/lttng-tools/blob/c8e0c5f5d94fb574f4e5d7518f0f8e6f984dfe3d/src/bin/lttng-sessiond/ust-metadata.c" rel="noreferrer noreferrer" target="_blank">https://github.com/lttng/lttng-tools/blob/c8e0c5f5d94fb574f4e5d7518f0f8e6f984dfe3d/src/bin/lttng-sessiond/ust-metadata.c</a><br><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_-5074802541275856454gmail_signature"><div dir="ltr"><div><div dir="ltr"><font size="4"><b>Ravindra Kumar Meena</b></font>,<div><span style="color:rgb(102,102,102)">B. Tech. Computer Science and Engineering,<br></span></div><div><span style="color:rgb(102,102,102)"><a href="https://www.iitism.ac.in/" style="color:rgb(17,85,204)" target="_blank" rel="noreferrer">Indian Institute of Technology (Indian School of Mines)</a>, Dhanbad</span></div></div></div></div></div></div></div>