From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 934 invoked by alias); 17 Jan 2006 06:04:44 -0000 Received: (qmail 927 invoked by uid 22791); 17 Jan 2006 06:04:43 -0000 X-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,DNS_FROM_RFC_ABUSE,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from e36.co.us.ibm.com (HELO e36.co.us.ibm.com) (32.97.110.154) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 17 Jan 2006 06:04:42 +0000 Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11]) by e36.co.us.ibm.com (8.12.11/8.12.11) with ESMTP id k0H64eAu030489 for ; Tue, 17 Jan 2006 01:04:40 -0500 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by westrelay02.boulder.ibm.com (8.12.10/NCO/VERS6.8) with ESMTP id k0H635q8270394 for ; Mon, 16 Jan 2006 23:03:05 -0700 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.12.11/8.13.3) with ESMTP id k0H64eXi001815 for ; Mon, 16 Jan 2006 23:04:40 -0700 Received: from sparklet2.in.ibm.com ([9.182.15.7]) by d03av02.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id k0H64bRN001639; Mon, 16 Jan 2006 23:04:40 -0700 Received: by sparklet2.in.ibm.com (Postfix, from userid 500) id 2926918F3E; Tue, 17 Jan 2006 11:44:06 +0530 (IST) Date: Tue, 17 Jan 2006 06:04:00 -0000 From: Suparna Bhattacharya To: anil dot s dot keshavamurthy at intel dot com Cc: systemtap@sources.redhat.com Subject: Re: [Bug kprobes/2152] jprobe variant to run handler instead of probed function Message-ID: <20060117061406.GA5251@in.ibm.com> Reply-To: suparna@in.ibm.com References: <20060113232600.2152.jkenisto@us.ibm.com> <20060116172629.18401.qmail@sourceware.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060116172629.18401.qmail@sourceware.org> User-Agent: Mutt/1.4i X-IsSubscribed: yes Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2006-q1/txt/msg00187.txt.bz2 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