<div dir="ltr">Hi Xuan,<div><br></div><div>First, thanks for reaching out!</div><div><br></div><div>Basically, the Babeltrace Python bindings project aims at providing Python developers with a library to read the trace formats supported by Babeltrace. I'll take the chance to detail what we had in mind with this project.</div>
<div><br></div><div>The first part consists of producing Python bindings to libbabeltrace's public API. This has already been done last summer but is not yet part of the master branch. It currently lives in the "bindings/python" branch of Babeltrace's repository[1]. However, it is not completely up-to-date and lacks thorough testing.</div>
<div><br></div><div>The second part, which is more of an interface design exercise, is exposing the trace data read by libbabeltrace in a "Pythonic" way. That includes implementing Python's generator-iterator interface, expressing the trace metadata using Python's data structures, etc. libbabeltrace can also be used as a trace writer so the Python interface should expose this functionality by providing a symmetric output interface. All in all, it calls for a lot more design work than actual implementation.</div>
<div><br></div><div>For starters, you may want to have a look at the CTF specification[2], which is currently the only trace format supported by Babeltrace, to give you an idea of the challenges at hand. Trying out the complete LTTng toolchain will also give you a better view of this project.</div>
<div><br></div><div>[1] <a href="https://bugs.lttng.org/projects/babeltrace/repository/show?rev=bindings%2Fpython" target="_blank">https://bugs.lttng.org/projects/babeltrace/repository/show?rev=bindings%2Fpython</a><br></div>
<div class="gmail_extra">[2] <a href="http://git.efficios.com/?p=ctf.git;a=blob_plain;f=common-trace-format-specification.txt;hb=master" target="_blank">http://git.efficios.com/?p=ctf.git;a=blob_plain;f=common-trace-format-specification.txt;hb=master</a><br>
<br>Don't hesitate to come forward and propose a tentative API or ask for clarifications.<br><br>Regards,<br>Jérémie<br><br><div class="gmail_quote">On Tue, Apr 9, 2013 at 5:38 AM, Xuan Hu <span dir="ltr"><<a href="mailto:huxuan8218528@gmail.com" target="_blank">huxuan8218528@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hello everyone,<div><br></div><div>I'm really interested in the project of `Babeltrace python bindings`. Besides I'm confident with my python skill and I'm willing to study more skills related. As far as I know, I think this is a somewhat standalone project which should create a module for python programmers to get the results which babeltrace produce. Wish potential mentor (jgalar) can judge whether it is or not. Besides I wonder to know any suggestions for me to begin with this project?</div>
<span><font color="#888888">
<div><div><div><br></div>-- <br><div dir="ltr"><div>扈煊 Sean.Hu</div><div><br></div><div><div><div>北京大学信息科学技术学院2012级硕士研究生</div><div>2012, Master Degree Candidate, EECS, PKU</div><div><br></div><div><a href="http://huxuan.org/" target="_blank">Blog</a> | <a href="https://github.com/huxuan/" target="_blank">GitHproposeub</a> | <a href="https://twitter.com/huxuan/" target="_blank">Twitter</a> | <a href="http://www.douban.com/people/huxuan/" target="_blank">Douban</a> | <a href="https://plus.google.com/u/0/116930918200210859389" target="_blank">Google+</a> | <a href="http://jiepang.com/huxuan/" target="_blank">Jiepang</a> | <a href="http://weibo.com/victorhu" target="_blank">Weibo</a><br>
</div></div></div></div>
</div></div></font></span></div>
<br>_______________________________________________<br>
lttng-dev mailing list<br>
<a href="mailto:lttng-dev@lists.lttng.org" target="_blank">lttng-dev@lists.lttng.org</a><br>
<a href="http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" target="_blank">http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Jérémie Galarneau<br>EfficiOS Inc.<br><a href="http://www.efficios.com" target="_blank">http://www.efficios.com</a>
</div></div>