From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32469 invoked by alias); 5 Dec 2008 11:51:34 -0000 Received: (qmail 32462 invoked by uid 22791); 5 Dec 2008 11:51:33 -0000 X-Spam-Level: * X-Spam-Status: No, hits=-4.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_JMF_W X-Spam-Check-By: sourceware.org Received: from E23SMTP03.au.ibm.com (HELO e23smtp03.au.ibm.com) (202.81.18.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 05 Dec 2008 11:50:50 +0000 Received: from d23relay03.au.ibm.com (d23relay03.au.ibm.com [202.81.18.234]) by e23smtp03.au.ibm.com (8.13.1/8.13.1) with ESMTP id mB5BnMQ7015438 for ; Fri, 5 Dec 2008 22:49:22 +1100 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id mB5BnwHO4387008 for ; Fri, 5 Dec 2008 22:49:59 +1100 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id mB5BnV5j009729 for ; Fri, 5 Dec 2008 22:49:31 +1100 Received: from linux.vnet.ibm.com (srdronam.in.ibm.com [9.124.31.43] (may be forged)) by d23av04.au.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id mB5BnBFb009656 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 5 Dec 2008 22:49:29 +1100 Date: Fri, 05 Dec 2008 11:51:00 -0000 From: Srikar Dronamraju To: Breno Leitao Cc: systemtap@sources.redhat.com Subject: Re: registration error (rc -22) on a standard function. Why ? Message-ID: <20081205114909.GD7710@linux.vnet.ibm.com> Reply-To: Srikar Dronamraju References: <49372A82.1030505@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49372A82.1030505@linux.vnet.ibm.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-IsSubscribed: yes Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2008-q4/txt/msg00485.txt.bz2 * Breno Leitao [2008-12-03 22:55:30]: Hi Breno, Can you if there are related messages in dmesg when you see this error? -Srikar > Hi, > > I am trying to probe a function which was static and inline. To probe > it, I remove the static and inline modifier, to turn into a standard > function, but now I am getting the following error: > > WARNING: probe module("bonding").function("_lock_tx_hashtbl@drivers/net/bonding/bond_alb.c:132") registration error (rc -22) > > Here is the function: > > void _lock_tx_hashtbl(struct bonding *bond) > { > spin_lock_bh(&(BOND_ALB_INFO(bond).tx_hashtbl_lock)); > } > > stap -p2 shows: > > module("bonding").function("_lock_tx_hashtbl@drivers/net/bonding/bond_alb.c:132") /* pc=.text+0x9b00 */ /* <- module("bonding").function("_lock_tx_hashtbl") */ > > > Objdump shows: > > 0000000000009b00 <._lock_tx_hashtbl>: > 9b00: 7c 08 02 a6 mflr r0 > 9b04: 38 63 01 f0 addi r3,r3,496 > 9b08: f8 01 00 10 std r0,16(r1) > 9b0c: f8 21 ff 91 stdu r1,-112(r1) > 9b10: 48 00 00 01 bl 9b10 <._lock_tx_hashtbl+0x10> > 9b10: R_PPC64_REL24 ._spin_lock_bh > 9b14: 60 00 00 00 nop > 9b18: 38 21 00 70 addi r1,r1,112 > 9b1c: e8 01 00 10 ld r0,16(r1) > 9b20: 7c 08 03 a6 mtlr r0 > 9b24: 4e 80 00 20 blr > > > I really didn't understand why I can't probe that function. Any idea > what might be wrong ? > > Thanks > Breno