This is the mail archive of the
systemtap@sources.redhat.com
mailing list for the systemtap project.
[RFC PATCH 0/6] kprobes: remove global kprobe_lock
- From: Ananth N Mavinakayanahalli <ananth at in dot ibm dot com>
- To: systemtap at sources dot redhat dot com
- Cc: ak at muc dot de, davem at davemloft dot net
- Date: Fri, 29 Jul 2005 14:51:50 -0400
- Subject: [RFC PATCH 0/6] kprobes: remove global kprobe_lock
- Reply-to: ananth at in dot ibm dot com
Hi,
The following set of patches replaces the global spinlock (kprobe_lock)
with an rwlock. With this change, it is now possible to have parallel
execution of kprobes (same/different), without having to spin on the
kprobe_lock. Of course, it is required that the handlers are reentrant
so as to obtain accurate results, or the handlers have to take care of
serializing in case they share variables (counters for example).
Note that kretprobe handlers are still serialized by the kretprobe_lock
which is a spinlock.
Patches against 2.6.13-rc3-mm3.
Ananth