public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "fche at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sources.redhat.com
Subject: [Bug translator/4935] support on-the-fly probe enable/disable syntax
Date: Mon, 08 Oct 2007 17:10:00 -0000	[thread overview]
Message-ID: <20071008171019.19372.qmail@sourceware.org> (raw)
In-Reply-To: <20070817183537.4935.fche@redhat.com>


------- Additional Comments From fche at redhat dot com  2007-10-08 17:10 -------
> In that case, 
> ---
>  probe ALIAS=PROBEPOINT { stmt1; }
>  probe ALIAS if (expr) { stmt2; }
>  probe ALIAS { stmt3; }
> ---
> will be treated as
> ---
>  probe PROBEPOINT { if (!expr) next; stmt1; stmt2}
>  probe PROBEPOINT { stmt1; stmt3}
> ---
> Is that right?

That's right.  It wouldn't make sense to act as if the conditional
was within the probe handler block (after the prefix from aliases),
since that would require the underlying probe to still be active.

It also means that the variables in "expr" can in practice only involve
global script-level variables.  (Even pure embedded-C functions can
change their values frequently enough to make them impractical as
part of an automatic predicate.  In this sort of case, we could opt
to automatically translate the script to the "{ if (!expr) next; ... }"
form, which would run correctly but slowly.)


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=4935

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

  parent reply	other threads:[~2007-10-08 17:10 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-17 21:37 [Bug translator/4935] New: " fche at redhat dot com
2007-08-24  1:46 ` [Bug translator/4935] " fche at redhat dot com
2007-10-08 16:49 ` mhiramat at redhat dot com
2007-10-08 17:10 ` fche at redhat dot com [this message]
2007-11-16 23:40 ` mhiramat at redhat dot com
2007-11-20 16:34   ` Frank Ch. Eigler
2007-11-20 18:57     ` Masami Hiramatsu
2007-11-27 16:02 ` mhiramat at redhat dot com
2007-11-27 16:15 ` fche at redhat dot com
2007-11-27 23:10 ` mhiramat at redhat dot com
2007-12-04 20:46 ` mhiramat at redhat dot com
2007-12-04 20:47 ` mhiramat at redhat dot com
2007-12-05 17:09 ` fche at redhat dot com
2007-12-05 19:21 ` mhiramat at redhat dot com
2008-01-14 17:13 ` fche at redhat dot com
2008-10-01 21:23 ` mhiramat at redhat dot com
2009-11-20 22:42 ` fche at redhat dot com

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=20071008171019.19372.qmail@sourceware.org \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=systemtap@sources.redhat.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).