public inbox for systemtap-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM] systemtap: system-wide probe/trace tool branch, master, updated. release-1.0-114-g720bbfc
@ 2009-10-19 8:17 srikar
0 siblings, 0 replies; only message in thread
From: srikar @ 2009-10-19 8:17 UTC (permalink / raw)
To: systemtap-cvs
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "systemtap: system-wide probe/trace tool".
The branch, master has been updated
via 720bbfc68d9e7dfd8c37587c6a61da75d6aab4fa (commit)
from 3c2341daf979fc38fc534ae91e00594a525962e0 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 720bbfc68d9e7dfd8c37587c6a61da75d6aab4fa
Author: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Date: Mon Oct 19 13:44:21 2009 +0530
Avoid lockdep warnings.
uprobe_fork_uproc() runs with parent_uproc->rwsem locked.
However uprobe_mk_process() that gets called within uprobe_fork_uproc()
also locks child_uproc->rwsem after initializing it.
Lockdep report confuses this to acquiring a lock that already has been
acquired and suggests using sub-classes.
The alternatives we have are:
1. use classes level to distinguish different uproc structures.
2. unlock parent_uproc->rwsem before we call uprobe_fork_uproc().
3. dont try locking child_uproc->rwsem; since we are protected by
uproc_mutex as well as parent_uproc->rwsem;
We use the last approach.
Signed-off-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
---
-----------------------------------------------------------------------
Summary of changes:
runtime/uprobes/uprobes.c | 24 +++++++++++++++++-------
runtime/uprobes2/uprobes.c | 24 +++++++++++++++++-------
2 files changed, 34 insertions(+), 14 deletions(-)
hooks/post-receive
--
systemtap: system-wide probe/trace tool
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-10-19 8:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-19 8:17 [SCM] systemtap: system-wide probe/trace tool branch, master, updated. release-1.0-114-g720bbfc srikar
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).