From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10470 invoked by alias); 9 Jun 2006 03:03:16 -0000 Received: (qmail 10459 invoked by uid 22791); 9 Jun 2006 03:03:14 -0000 X-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mga02.intel.com (HELO orsmga101-1.jf.intel.com) (134.134.136.20) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 09 Jun 2006 03:03:12 +0000 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101-1.jf.intel.com with ESMTP; 08 Jun 2006 20:03:09 -0700 Received: from maobb.sh.intel.com (HELO [10.239.13.126]) ([10.239.13.126]) by orsmga001.jf.intel.com with ESMTP; 08 Jun 2006 20:03:07 -0700 X-IronPort-AV: i="4.05,221,1146466800"; d="scan'208"; a="48155153:sNHT404857761" Message-ID: <4488E275.1020304@intel.com> Date: Fri, 09 Jun 2006 03:03:00 -0000 From: "bibo,mao" User-Agent: Thunderbird 1.5.0.2 (X11/20060420) MIME-Version: 1.0 To: Masami Hiramatsu CC: "Keshavamurthy, Anil S" , Ananth N Mavinakayanahalli , SystemTAP , Yumiko Sugita , Satoshi Oshima , Hideo Aoki , Prasanna S Panchamukhi , Jim Keniston Subject: Re: [PATCH]kprobe booster for IA64 References: <4485223C.8090109@sdl.hitachi.co.jp> <44868B03.70108@intel.com> <448834B6.1010002@sdl.hitachi.co.jp> In-Reply-To: <448834B6.1010002@sdl.hitachi.co.jp> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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-q2/txt/msg00587.txt.bz2 Masami Hiramatsu wrote: > Hi bibo, > > bibo,mao wrote: > > hiramatu san, > > If the probed instruction can cause one fault, there may be some problem. > > Because original instruction is copied into 2nd element of ainsn.insn, > > instruction execution address is different, search_exception_tables result > > will be different also. > > Thank you for your good advice. > As far as I can see, the search_exception_tables() checks whether the > page-fault address is expected to cause an exception. > If it is correct, I think the problem can be avoided by disabling > booster if the table contains the target address. > For example; > > if (can_boost(template) && !search_exception_tables(p->addr)) { > p->ainsn.inst_flag |= INST_FLAG_BOOSTABLE; > } > > What would you think about this idea? > > Thanks > That's good for me. BTW in IA64 one bundle has three instructions, I think that this bundle should be judged whether it is within exception table. Thanks bibo,mao