lttng-dev.lists.lttng.org archive mirror
 help / color / mirror / Atom feed
From: Rocky Dunlap via lttng-dev <lttng-dev@lists.lttng.org>
To: lttng-dev@lists.lttng.org
Subject: bt2 python - accessing component instances added to graph
Date: Sun, 29 Mar 2020 23:24:37 -0600	[thread overview]
Message-ID: <CADtyBo4tQxYBFZnk6dqTSkU4OjW2Fxmx0xJrP=ADaCz_YUXf1g@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 308 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 423 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

             reply	other threads:[~2020-03-30  5:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-30  5:24 Rocky Dunlap via lttng-dev [this message]
2020-03-30 13:45 ` Simon Marchi via lttng-dev
     [not found]   ` <CADtyBo6mzBQ3sVUpc4gbxEf7LVsfV+m8oWNMjMdG1gDPsnRR6A@mail.gmail.com>
     [not found]     ` <32146698-0314-1eaf-e422-2c9e088056e7@simark.ca>
2020-03-30 20:41       ` Rocky Dunlap via lttng-dev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADtyBo4tQxYBFZnk6dqTSkU4OjW2Fxmx0xJrP=ADaCz_YUXf1g@mail.gmail.com' \
    --to=lttng-dev@lists.lttng.org \
    --cc=dunlap@ucar.edu \
    --subject='Re: bt2 python - accessing component instances added to graph' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).