public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/10013] New: Support ENABLED sdt probe macro
@ 2009-03-30 12:14 mjw at redhat dot com
  2009-03-30 18:48 ` [Bug runtime/10013] " fche at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: mjw at redhat dot com @ 2009-03-30 12:14 UTC (permalink / raw)
  To: systemtap

Currently there is no way for a user program that uses sdt.h for stap static
dynamic probes to know whether or not a probe has been enabled at runtime. This
might be beneficial when setting up probe arguments is expensive. This is an
issue for some interpreters that have to translate function names, classes or
methods to (pointers to) strings for example. They don't want to do that extra
argument setup unless the probe is enabled at that time. TCL for example uses a
facility like that. Java hotspot currently requires being started with an extra
flag that always translates all probe arguments when enabled. This causes a
performance hit and makes those probes only available in this "special mode"
which kind of defeats the purpose of "zero-impact, always on tracing".

This would also help with dtrace emulation for sdt. Currently our dtrace python
wrapper script just outputs "#define %s_ENABLED() 1" for every dtrace emulated
probe.

The ENABLED probe macro should return 1 when the associated probe is enabled
(the uprobe/mark set in the executable/library) and 0 otherwise.

-- 
           Summary: Support ENABLED sdt probe macro
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: mjw at redhat dot com


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

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

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

end of thread, other threads:[~2009-11-05 13:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-30 12:14 [Bug runtime/10013] New: Support ENABLED sdt probe macro mjw at redhat dot com
2009-03-30 18:48 ` [Bug runtime/10013] " fche at redhat dot com
2009-04-05 19:17 ` mjw at redhat dot com
2009-04-05 21:56 ` fche at redhat dot com
2009-04-05 22:22 ` mjw at redhat dot com
2009-04-16 15:21 ` scox at redhat dot com
2009-11-05 13:57 ` fche at redhat dot com

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