Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: Andrew.McDermott@windriver.com (McDermott, Andrew)
Subject: [lttng-dev] getting a notification from 'lttng start|stop'
Date: Thu, 25 Oct 2012 11:49:41 +0000	[thread overview]
Message-ID: <7F632A9222059A42AF70FCB7965774AA208660DB@ALA-MBB.corp.ad.wrs.com> (raw)


Is it possible to see when tracing has actually started (i.e., when
`lttng start' is invoked)?

I can observe that the tracepoint is enabled/disabled by looking at the
'state' field in a 'struct tracepoint'.  Is there an equivalent variable
to monitor for `lttng start|stop'?  I was trying to dump some additional
process state (via calls to tracepoint) whenever an external
start/stop/start/stop/start sequence occurs.

Also, when I run 'lttng enable-event -u -a' I see that the 'state' value
changes from '0' to '1', but if I run 'lttng disable-event -u -a' it
stays at '1'.  Is this expected?  If I subsequently run 'lttng destroy'
then it does go to '0'.  Shouldn't the disable set it to '0' too?

-- 
andy


                 reply	other threads:[~2012-10-25 11:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=7F632A9222059A42AF70FCB7965774AA208660DB@ALA-MBB.corp.ad.wrs.com \
    --to=andrew.mcdermott@windriver.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox