ok thanks for the help. I will try it later
Amanda
From: Simon Marchi
Sent: Friday, April 26, 2024 10:57:59 PM
To: Wu, Yannan; Kienan Stewart; lttng-dev@lists.lttng.org
Subject: RE: [EXTERNAL] [lttng-dev] [babeltrace2]about python self-defined
plugin loading
On 2024-04-26 09:56, Wu, Yannan via lttng-dev wrote:
> Hihi, Kienan,
>
> I finally find a workaround. I could success with the following code:
> file_name = "bt_plugin_latency_filter.py"
> current_directory=os.getcwd()
>
> file_path = os.path.join(current_directory, file_name)
> pset=bt2.find_
___
From: Kienan Stewart
Sent: Thursday, April 25, 2024 11:43:05 PM
To: Wu, Yannan; lttng-dev@lists.lttng.org
Subject: RE: [EXTERNAL] [lttng-dev] [babeltrace2]about python self-defined
plugin loading
CAUTION: This email originated from outside of the organization. Do not click
links or ope
My apologies,
there is a typo in my previous e-mail, the library directory should be:
`/babeltrace2/plugin-providers/'
thanks,
kienan
On 4/25/24 11:41 AM, Kienan Stewart via lttng-dev wrote:
Hi Amanda,
could you double-check to ensure that babeltrace2 was built with
`--enable-python-plugins
Hi Amanda,
could you double-check to ensure that babeltrace2 was built with
`--enable-python-plugins`, and that `import bt2` works?
There should be a babeltrace2-python-plugin-provider.so in
`/babeltrace2/plugin-provides`
thanks,
kienan
On 4/24/24 11:28 PM, Wu, Yannan via lttng-dev wrote:
Hi, There,
I am trying to construct a customized filter and sink based on babeltrace2
python binding. However, nether mine plugin nor the 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