<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>> See this dmesg source plugin for a base example of a source plugin [1]. This is<br>
> valid for babeltrace 2.0 only (AKA the current master branch of babeltrace)<br>
> <br>
> For a more complete example of a source plugin, you can take a look at the one for<br>
> ctf [2]. Once a source plugin is done you will be able to reuse all the current<br>
> infrastructure of babeltrace to output to ctf (ctf.sink).<br>
> <br>
> There is no magic solution here, you will need to write a decoder (source<br>
> plugin) for your format.<br>
> <br>
> [1] <a href="https://github.com/efficios/babeltrace/tree/master/plugins/text/dmesg" rel="noreferrer" target="_blank">https://github.com/efficios/babeltrace/tree/master/plugins/text/dmesg</a><br>
<br>
For all the people coming here from the future:<br>
<br>
[1] <a href="http://git.efficios.com/?p=babeltrace.git;a=tree;f=plugins/text/dmesg;h=a45918aaf266dac29db6f7a0e4d08ffdb056131a" rel="noreferrer" target="_blank">http://git.efficios.com/?p=babeltrace.git;a=tree;f=plugins/text/dmesg;h=a45918aaf266dac29db6f7a0e4d08ffdb056131a</a><br>
<br>
> [2] <a href="https://github.com/efficios/babeltrace/tree/master/plugins/ctf/fs-src" rel="noreferrer" target="_blank">https://github.com/efficios/babeltrace/tree/master/plugins/ctf/fs-src</a><br>
<br>
[2] <a href="http://git.efficios.com/?p=babeltrace.git;a=tree;f=plugins/ctf/fs-sink;h=b96b435706cac0ed50cb64918603172b67afc424" rel="noreferrer" target="_blank">http://git.efficios.com/?p=babeltrace.git;a=tree;f=plugins/ctf/fs-sink;h=b96b435706cac0ed50cb64918603172b67afc424</a><br>
</blockquote></div><div><br></div>Thanks for sharing the links. I have cloned the babeltrace master branch and installed all the dependencies required. The build was successful.<br clear="all"><div><br></div><div>How should I use decoder(source plugin) example[1]? I mean I can see the code and change it but how should I use it?</div><div><br></div><div>[1] <a href="https://github.com/efficios/babeltrace/tree/master/src/plugins/ctf/fs-src">https://github.com/efficios/babeltrace/tree/master/src/plugins/ctf/fs-src</a></div><div><br></div><div>Thanks</div>-- <br><div dir="ltr" class="gmail_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">Indian Institute of Technology (Indian School of Mines)</a>, Dhanbad</span></div></div></div></div></div></div>