This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/10013] Support ENABLED sdt probe macro


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]