From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10179 invoked by alias); 14 Jul 2006 18:41:58 -0000 Received: (qmail 10169 invoked by uid 22791); 14 Jul 2006 18:41:57 -0000 X-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mga07.intel.com (HELO azsmga101.ch.intel.com) (143.182.124.22) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 14 Jul 2006 18:41:56 +0000 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 14 Jul 2006 11:41:53 -0700 Received: from unix-os.sc.intel.com ([172.25.110.7]) by azsmga001.ch.intel.com with ESMTP; 14 Jul 2006 11:41:49 -0700 X-IronPort-AV: i="4.06,244,1149490800"; d="scan'208"; a="66109336:sNHT694960469" Received: (from askeshav@localhost) by unix-os.sc.intel.com (8.11.6/8.11.2) id k6EIQSf15679; Fri, 14 Jul 2006 11:26:28 -0700 Date: Fri, 14 Jul 2006 18:41:00 -0000 From: Keshavamurthy Anil S To: Masami Hiramatsu Cc: Keshavamurthy Anil S , Ananth N Mavinakayanahalli , SystemTAP , Yumiko Sugita , Satoshi Oshima , Hideo Aoki , Prasanna S Panchamukhi , Jim Keniston Subject: Re: Preemption-safe kprobe-booster(Re: [PATCH]kprobe booster for IA64) Message-ID: <20060714112627.A15658@unix-os.sc.intel.com> Reply-To: Keshavamurthy Anil S References: <4485223C.8090109@sdl.hitachi.co.jp> <20060628190541.A13874@unix-os.sc.intel.com> <44AAF207.7090908@sdl.hitachi.co.jp> <44B4952D.9010603@hitachi.com> <20060712010122.A30357@unix-os.sc.intel.com> <44B62D9D.20303@hitachi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <44B62D9D.20303@hitachi.com>; from masami.hiramatsu.pt@hitachi.com on Thu, Jul 13, 2006 at 08:25:17PM +0900 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-q3/txt/msg00108.txt.bz2 On Thu, Jul 13, 2006 at 08:25:17PM +0900, Masami Hiramatsu wrote: > Hi, Anil > Thank you for precise advice. > > Keshavamurthy Anil S wrote: > > On Wed, Jul 12, 2006 at 03:22:37PM +0900, Masami Hiramatsu wrote: > Now, we are searching for other good solutions against this problem. > > Anyway, I'd like to disable booster when CONFIG_PREEMPT is defined > until this problem is solved. I attached the patch to this mail. > Please review it. > --Comment here please /* Booster probe is not support for preemptable kernel */ > +#ifdef CONFIG_PREEMPT ^^^^^^ Should be #ifndef > + if (p->ainsn.boostable == 1 && !p->post_handler){ > /* Boost up -- we can execute copied instructions directly */ > reset_current_kprobe(); > regs->eip = (unsigned long)p->ainsn.insn; > preempt_enable_no_resched(); > return 1; > } > +#endif > prepare_singlestep(p, regs); > kcb->kprobe_status = KPROBE_HIT_SS; > return 1; Also you may want to do the same thing for kretprobe booster. Thanks, Anil