This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: registration error (rc -22)


Paul Larson <pl@us.ibm.com> writes:

> [...]
> probe module("cxgb3").function("*") {
>  print("got here\n")
> }
> [...]
> ERROR: probe
> module("cxgb3").function("get_regs@drivers/net/cxgb3/cxgb3_main.c:1366")
> registration error (rc -22)

Things are working fine for x86/x86-64 in several tests.  To help
diagnose what's going on there, try ...
   % stap -vvv -p2 -e '... your probe ...'
in particular, find the pc addresses.  Or run "-p3" and gaze at the
kprobe setup tables.

Run
   # stap -vvv -DDEBUG_SYMBOLS -e '... your probe ...'
There should be some
   _stp_module_relocate MODULE, SECTION, OFFSET
   _stp_module_relocate address=RESULT
type messages in there.  The OFFSET/SECTION should match up with
the -p2/-p3 values.  The RESULT address should match up with the
live running value from /proc/kallsyms.

- FChE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]