* [lttng-dev] [Babeltrace 2] Make use of self constructed python plugin
@ 2024-04-24 8:55 Wu, Yannan via lttng-dev
0 siblings, 0 replies; only message in thread
From: Wu, Yannan via lttng-dev @ 2024-04-24 8:55 UTC (permalink / raw)
To: lttng-dev@lists.lttng.org
[-- Attachment #1.1: Type: text/plain, Size: 2125 bytes --]
Hi, There,
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.
For example, https://github.com/simark/babeltrace-fun-plugins/tree/master/my-first-components
I just downloaded the py file and run the exact command, it failed. The log is as following:
yannanwu@ue91e96f2951b5c:~/trees/lttng_test_run$ babeltrace2 --plugin-path . -c source.demo.MyFirstSource -c sink.demo.MyFirstSink
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
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
04-24 16:52:04.349 919805 919805 E CLI cmd_run@babeltrace2.c:2465 Cannot initialize the command's context.
ERROR: [Babeltrace CLI] (babeltrace2.c:2465)
Cannot initialize the command's context.
CAUSED BY [Babeltrace CLI] (babeltrace2.c:1882)
Cannot find an operative message interchange protocol version to use to create the `run` command's graph: status=ERROR
CAUSED BY [Babeltrace CLI] (babeltrace2.c:1720)
Cannot find component class: plugin-name="demo", comp-cls-name="MyFirstSource", comp-cls-type=1
yannanwu@ue91e96f2951b5c:~/trees/lttng_test_run$ babeltrace2 --version
Babeltrace 2.0.7 "Amqui" [v2.0.6-1-g825a0ed6d]
Amqui (/ɒmkwiː/) is a town in eastern Québec, Canada, at the base of the Gaspé peninsula in Bas-Saint-Laurent. Located at the
confluence of the Humqui and Matapédia Rivers, its proximity to woodlands makes it a great destination for outdoor activities such as
camping, hiking, and mountain biking.
yannanwu@ue91e96f2951b5c:~/trees/lttng_test_run$
Is the cli changed or something? How can I make it right?
Besides, is it possible we create a pipeline in python and make use the the python drafted plugin? Can you advise me how?
Amanda
[-- Attachment #1.2: Type: text/html, Size: 2862 bytes --]
[-- Attachment #2: Type: text/plain, Size: 156 bytes --]
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-04-24 16:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-24 8:55 [lttng-dev] [Babeltrace 2] Make use of self constructed python plugin Wu, Yannan via lttng-dev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).