From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20129 invoked by alias); 13 Oct 2006 21:10:18 -0000 Received: (qmail 20122 invoked by uid 22791); 13 Oct 2006 21:10:17 -0000 X-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,TW_PF,UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org Received: from mga06.intel.com (HELO orsmga101.jf.intel.com) (134.134.136.21) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 13 Oct 2006 21:10:07 +0000 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 13 Oct 2006 14:10:06 -0700 Received: from unix-os.sc.intel.com ([172.25.110.7]) by orsmga001.jf.intel.com with ESMTP; 13 Oct 2006 14:10:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: i="4.09,308,1157353200"; d="scan'208"; a="144717380:sNHT19499613" Received: (from askeshav@localhost) by unix-os.sc.intel.com (8.11.6/8.11.2) id k9DKol114661; Fri, 13 Oct 2006 13:50:47 -0700 Date: Fri, 13 Oct 2006 21:10:00 -0000 From: Keshavamurthy Anil S To: "Stone, Joshua I" Cc: "Keshavamurthy, Anil S" , Systemtap Subject: Re: Stap is translating to functions in __exit sections...and later module load fails Message-ID: <20061013135046.A32202@unix-os.sc.intel.com> Reply-To: Keshavamurthy Anil S References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from joshua.i.stone@intel.com on Fri, Oct 13, 2006 at 02:02:39PM -0700 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-q4/txt/msg00114.txt.bz2 On Fri, Oct 13, 2006 at 02:02:39PM -0700, Stone, Joshua I wrote: > On Friday, October 13, 2006 1:26 PM, Keshavamurthy, Anil S wrote: > > stap -e 'probe kernel.function("*") { log("."); }' > > results in > > ERROR: dwarf probe > > kernel.function("exit_pfm_fs@arch/ia64/kernel/perfmon.c:1507") > > registration failed, rc=1 > > > > Looks like on Ia64, stap is translating to functions which are in > > __exit sections, as in the above failure case exit_pfm_fs() function > > is prefixed with __exit and when the module is loaded the > > kprobe registration fails as the functions in exit sections no longer > > exist. > > The translator blacklist tries to avoid such functions by checking the > section name -- anything within a section beginning with '.exit.' (e.g., > .exit.text) is blacklisted, and thus won't match a function("*"). Exactly, I expected that the translator blacklists' and does not elaborate such functions. But looks like this is not happening. See here.... #stap -p2 -e 'probe kernel.function("*") {}' | sort | uniq |grep exit_pfm_fs kernel.function("exit_pfm_fs@arch/ia64/kernel/perfmon.c:1507"), # cat /proc/kallsyms |grep exit_pfm_fs # # > > Does IA64 do something different with the __exit sections? > Everything in __exit sections will be discarded just after boot. -thanks, Anil