This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/10013] Support ENABLED sdt probe macro
- From: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 30 Mar 2009 15:37:38 -0000
- Subject: [Bug runtime/10013] Support ENABLED sdt probe macro
- References: <20090330093705.10013.mjw@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From fche at redhat dot com 2009-03-30 15:37 -------
One way to implement this could be to add a word-sized counter to the
.probes section that describes the probe point. Translator-generated
code could attempt to atomically increment/decrement that when the
corresponding uprobe is placed/removed. The ENABLED() macro would read that
value.
One way to make this somewhat less flaky/racy is to have all the counters
be set/cleared on a object-file-wide basis, when task-finder tells us it has
been loaded -- so before the user-space code starts to run.
--
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.