From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10812 invoked by alias); 13 Oct 2006 21:56:57 -0000 Received: (qmail 10801 invoked by uid 22791); 13 Oct 2006 21:56:56 -0000 X-Spam-Status: No, hits=-0.2 required=5.0 tests=AWL,BAYES_00,TW_BJ,TW_PF,UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org Received: from mga05.intel.com (HELO fmsmga101.fm.intel.com) (192.55.52.89) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 13 Oct 2006 21:56:55 +0000 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 13 Oct 2006 14:56:53 -0700 Received: from unix-os.sc.intel.com ([172.25.110.7]) by fmsmga002.fm.intel.com with ESMTP; 13 Oct 2006 14:56:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: i="4.09,308,1157353200"; d="scan'208"; a="3674880:sNHT18549846" Received: (from askeshav@localhost) by unix-os.sc.intel.com (8.11.6/8.11.2) id k9DLbXb14883; Fri, 13 Oct 2006 14:37:33 -0700 Date: Fri, 13 Oct 2006 21:56: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: <20061013143733.A14849@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:26:44PM -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/msg00117.txt.bz2 On Fri, Oct 13, 2006 at 02:26:44PM -0700, Stone, Joshua I wrote: > On Friday, October 13, 2006 1:51 PM, Keshavamurthy, Anil S wrote: > > On Fri, Oct 13, 2006 at 02:02:39PM -0700, Stone, Joshua I wrote: > >> 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"), > > Yes, I believe you that the translator is producing a hit for > exit_pfm_fs. The question is *why*. Can you use objdump on your > vmlinux to find out what section that function is actually in? > > $ objdump -t <...>/vmlinux | grep exit_pfm_fs > > On x86 and x86_64, functions decorated with __exit end up in > '.exit.text'. If this isn't the case for IA64, then we'll need a > different mechanism for detecting such functions from the translator. Looks like this is in .exit.text section [root@csdor-tiger1 linux-2.6.19-rc1]# objdump -t arch/ia64/kernel/perfmon.o |grep exit_pfm_fs 0000000000000000 l F .exit.text 0000000000000070 exit_pfm_fs However "objdump -t vmlinux| grep exit_pfm_fs" did not show any thing. -thanks, Anil Keshavamurthy > > > Josh