<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi, There,</p>
<p>I am trying to construct a customized filter and sink based on babeltrace2 python binding. However, nether mine plugin nor the limited plugins sample I could find on the internet all dont work.</p>
<p>For example, <a href="https://github.com/simark/babeltrace-fun-plugins/tree/master/my-first-components" class="OWAAutoLink" id="LPlnk197177">
https://github.com/simark/babeltrace-fun-plugins/tree/master/my-first-components</a></p>
<p>I just downloaded the py file and run the exact command, it failed. The log is as following:<br>
</p>
<div><br>
</div>
<div>yannanwu@ue91e96f2951b5c:~/trees/lttng_test_run$ babeltrace2 --plugin-path . -c source.demo.MyFirstSource -c sink.demo.MyFirstSink<br>
04-24 16:52:04.349 919805 919805 E CLI add_descriptor_to_component_descriptor_set@babeltrace2.c:1720 Cannot find component class: plugin-name="demo", comp-cls-name="MyFirstSource", comp-cls-type=1<br>
04-24 16:52:04.349 919805 919805 E CLI cmd_run_ctx_init@babeltrace2.c:1882 Cannot find an operative message interchange protocol version to use to create the `run` command's graph: status=ERROR<br>
04-24 16:52:04.349 919805 919805 E CLI cmd_run@babeltrace2.c:2465 Cannot initialize the command's context.<br>
<br>
ERROR: [Babeltrace CLI] (babeltrace2.c:2465)<br>
Cannot initialize the command's context.<br>
CAUSED BY [Babeltrace CLI] (babeltrace2.c:1882)<br>
Cannot find an operative message interchange protocol version to use to create the `run` command's graph: status=ERROR<br>
CAUSED BY [Babeltrace CLI] (babeltrace2.c:1720)<br>
Cannot find component class: plugin-name="demo", comp-cls-name="MyFirstSource", comp-cls-type=1<br>
yannanwu@ue91e96f2951b5c:~/trees/lttng_test_run$ babeltrace2 --version<br>
Babeltrace 2.0.7 "Amqui" [v2.0.6-1-g825a0ed6d]<br>
<br>
Amqui (/ɒmkwiː/) is a town in eastern Québec, Canada, at the base of the Gaspé peninsula in Bas-Saint-Laurent. Located at the<br>
confluence of the Humqui and Matapédia Rivers, its proximity to woodlands makes it a great destination for outdoor activities such as<br>
camping, hiking, and mountain biking.<br>
yannanwu@ue91e96f2951b5c:~/trees/lttng_test_run$ <br>
<br>
</div>
Is the cli changed or something? How can I make it right?
<p></p>
<p>Besides, is it possible we create a pipeline in python and make use the the python drafted plugin? Can you advise me how?<br>
</p>
<p>Amanda<br>
</p>
</div>
</body>
</html>