public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* registration error (rc -22) on a standard function. Why ?
@ 2008-12-04  0:56 Breno Leitao
  2008-12-04  3:41 ` Ananth N Mavinakayanahalli
  2008-12-05 11:51 ` Srikar Dronamraju
  0 siblings, 2 replies; 4+ messages in thread
From: Breno Leitao @ 2008-12-04  0:56 UTC (permalink / raw)
  To: systemtap

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: registration error (rc -22) on a standard function. Why ?
  2008-12-04  0:56 registration error (rc -22) on a standard function. Why ? Breno Leitao
@ 2008-12-04  3:41 ` Ananth N Mavinakayanahalli
  2008-12-04 18:52   ` Frank Ch. Eigler
  2008-12-05 11:51 ` Srikar Dronamraju
  1 sibling, 1 reply; 4+ messages in thread
From: Ananth N Mavinakayanahalli @ 2008-12-04  3:41 UTC (permalink / raw)
  To: Breno Leitao; +Cc: systemtap

On Wed, Dec 03, 2008 at 10:55:30PM -0200, Breno Leitao wrote:
> 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 ?

Possibly part of the SystemTap blacklist. For safety reasons we don't
allow probing certain routines (spinlock*, mutex*, atomic*) and this
looks to be one of them.

Try stap -vv and you'll see a more descriptive error.

Ananth

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: registration error (rc -22) on a standard function. Why ?
  2008-12-04  3:41 ` Ananth N Mavinakayanahalli
@ 2008-12-04 18:52   ` Frank Ch. Eigler
  0 siblings, 0 replies; 4+ messages in thread
From: Frank Ch. Eigler @ 2008-12-04 18:52 UTC (permalink / raw)
  To: ananth; +Cc: Breno Leitao, systemtap

Ananth N Mavinakayanahalli <ananth@in.ibm.com> writes:

> [...]
>> WARNING: probe module("bonding").function("_lock_tx_hashtbl@drivers/net/bonding/bond_alb.c:132") registration error (rc -22)
>> [...]
> Possibly part of the SystemTap blacklist. [...]

No; the systemtap blacklist takes effect early during pass 2. 
This was a pass 5 error.

- FChE

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: registration error (rc -22) on a standard function. Why ?
  2008-12-04  0:56 registration error (rc -22) on a standard function. Why ? Breno Leitao
  2008-12-04  3:41 ` Ananth N Mavinakayanahalli
@ 2008-12-05 11:51 ` Srikar Dronamraju
  1 sibling, 0 replies; 4+ messages in thread
From: Srikar Dronamraju @ 2008-12-05 11:51 UTC (permalink / raw)
  To: Breno Leitao; +Cc: systemtap

* Breno Leitao <leitao@linux.vnet.ibm.com> [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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-12-05 11:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-04  0:56 registration error (rc -22) on a standard function. Why ? Breno Leitao
2008-12-04  3:41 ` Ananth N Mavinakayanahalli
2008-12-04 18:52   ` Frank Ch. Eigler
2008-12-05 11:51 ` Srikar Dronamraju

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).