This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [Bug kprobes/2152] jprobe variant to run handler instead of probed function
- From: Suparna Bhattacharya <suparna at in dot ibm dot com>
- To: anil dot s dot keshavamurthy at intel dot com <sourceware-bugzilla at sourceware dot org>
- Cc: systemtap at sources dot redhat dot com
- Date: Tue, 17 Jan 2006 11:44:06 +0530
- Subject: Re: [Bug kprobes/2152] jprobe variant to run handler instead of probed function
- References: <20060113232600.2152.jkenisto@us.ibm.com> <20060116172629.18401.qmail@sourceware.org>
- Reply-to: suparna at in dot ibm dot com
On Mon, Jan 16, 2006 at 05:26:29PM -0000, anil dot s dot keshavamurthy at intel dot com wrote:
>
> ------- Additional Comments From anil dot s dot keshavamurthy at intel dot com 2006-01-16 17:26 -------
> > Probably just calling "return" instead of "jprobe_return" from the jprobe
> > handler would do the trick ?
> You can't do that(at least in the current design) as jprobe_handler are
> executed with preempt disabled and current_kprobe set to this probe. Hence
True. Thanks for spotting that.
> jprobe_handler() _must_ execute jprobe_return(), so that Kprobe code can
> reverse the preempt count and clear current_kprobe.
>
>
>
> --
>
>
> http://sourceware.org/bugzilla/show_bug.cgi?id=2152
>
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
--
Suparna Bhattacharya (suparna@in.ibm.com)
Linux Technology Center
IBM Software Lab, India