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: How to track the functions in self-written module using SystemTap?


Nan Xiao <xiaonan830818@gmail.com> writes:

> [...]
>>> # stap -d /root/kernel/105.ops/kex.ko -v -e 'probe
>>> module("/root/kernel/105.ops/kex.ko").function("*") { printf("%s\n",
>>> print_backtrace()) }'
>>> [...]
>>> 2280usr/540sys/5099real ms.
>>> Pass 5: starting run.
>>> WARNING: no or bad debug frame hdr
>>> WARNING: No binary search table for debug frame, doing slow linear
>>> search for /root/kernel/105.ops/kex.ko

I wonder if something is going wrong with the module pathname logic.
Could you try a few more things?

- installing kex.ko under the kernel install tree (probably
  /lib/modules/`uname -r`/kernel or similar), so that
  stap -d kex -e 'probe module("kex").... {}'  
  works (without the path name).

- running stap in save-temp-directory (-k) mode, and shipping
  us a tarball of the /tmp/XXX directory, to see specifically
  how the stap-symbols.h file looks.  (email direct rather than
  to the mailing list; this file may be big)

- running stap in -DDEBUG_UNWIND=2 mode to get lots of
  backtracing-related data 


- FChE


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