This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: uprobes: keep thread blocked after the handler returns
- From: "David J. Wilder" <dwilder at us dot ibm dot com>
- To: Octavian Purdila <tavi at cs dot jhu dot edu>
- Cc: systemtap at sourceware dot org
- Date: Thu, 02 Aug 2007 14:07:16 -0700
- Subject: Re: uprobes: keep thread blocked after the handler returns
- References: <200708022342.34434.tavi@cs.jhu.edu>
Octavian Purdila wrote:
Hi all,
Is there a way to keep the thread blocked after the uprobe handler returns?
The scenario in which this can be usefull is when we want to do the probing
from userspace.
I know it can be done with utrace, but I think is more convenient to do it
directly from uprobes.
Thanks,
tavi
Why not just prevent the handler from returning until you want the
thread to unblock? The handler could sleep on something trigger from
user space.