Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [lttng-dev] bt2 python - accessing component instances added to graph
@ 2020-03-30  5:24 Rocky Dunlap
  2020-03-30 13:45 ` Simon Marchi
  0 siblings, 1 reply; 3+ messages in thread
From: Rocky Dunlap @ 2020-03-30  5:24 UTC (permalink / raw)


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?

Rocky
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20200329/da0c1254/attachment.htm>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-30 20:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-30  5:24 [lttng-dev] bt2 python - accessing component instances added to graph Rocky Dunlap
2020-03-30 13:45 ` Simon Marchi
     [not found]   ` <CADtyBo6mzBQ3sVUpc4gbxEf7LVsfV+m8oWNMjMdG1gDPsnRR6A@mail.gmail.com>
     [not found]     ` <32146698-0314-1eaf-e422-2c9e088056e7@simark.ca>
2020-03-30 20:41       ` Rocky Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox