Re: [lttng-dev] bt2 python - accessing component instances added to graph

2020-03-30 Thread Rocky Dunlap via lttng-dev
(Adding the list back in - I meant to reply-all before...) Simon, Yes, the obj solution should work just fine - I was wondering about that parameter and the approach makes sense to me. Thanks! Rocky On Mon, Mar 30, 2020 at 2:38 PM Simon Marchi wrote: > On 2020-03-30 4:24 p.m., Rocky Dunlap w

Re: [lttng-dev] bt2 python - accessing component instances added to graph

2020-03-30 Thread Simon Marchi via lttng-dev
On 2020-03-30 1:24 a.m., Rocky Dunlap via lttng-dev wrote: > I noticed that when I add a component to a bt2 graph, e.g.: > > sink = g.add_component(SinglePETSink, "sink"+str(idx)) > > The return value "sink" is not actually an instance of SinglePETSink (which > has been defined as a local Python

[lttng-dev] bt2 python - accessing component instances added to graph

2020-03-29 Thread Rocky Dunlap via lttng-dev
I noticed that when I add a component to a bt2 graph, e.g.: sink = g.add_component(SinglePETSink, "sink"+str(idx)) The return value "sink" is not actually an instance of SinglePETSink (which has been defined as a local Python class). How do I get to the instance of SinglePETSink that was created