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: Location of modules with debug info



On 28/09/2009, at 23:43, Frank Ch. Eigler wrote:


Roberto Jung Drebes <drebes@gmail.com> writes:

[...]
I'm trying to run a simple probe in Ununtu 9.04. I already installed
the linux-image-debug package with the debug information, so I do have
the vmlinux and modules with debug info on /usr/lib/debug/lib/ modules/
2.6.28-15-generic. [...]

Where did you get that one? It doesn't appear to be in the standard 9.04 repositories. (https://bugs.launchpad.net/ubuntu/+source/linux/+bug/289087)

I had to recompile my own packages changing skipdbg=true to skipdbg=false.



probe module("snd").function("*") { printf ("%s -> %s\n", thread_indent(1), probefunc()) }

(You will want to add a ".call" at the end of that probe point.)

Will try that. I had just copied it from


http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/html/SystemTap_Beginners_Guide/scripts.html

Maybe an old documentation.


WARNING: cannot find module snd debuginfo: No such file or directory semantic error: no match while resolving probe point module ("snd").function("*") [...]

I seem to recall that older linux-image-debug widgets from ubuntu contained only vmlinux and not any module data. If that's true for your package too, this would explain the above error.

This is what I have:


[root@rerun ~]# find /lib/modules/2.6.28-15-generic/ -name snd.ko | xargs ls -l
-rw-r--r-- 1 root root 114496 2009-09-28 15:08 /lib/modules/2.6.28-15- generic/kernel/sound/core/snd.ko
[root@rerun ~]# find /usr/lib/debug/lib/modules/2.6.28-15-generic/ - name snd.ko | xargs ls -l
-rw-r--r-- 1 root root 1604291 2009-09-28 15:12 /usr/lib/debug/lib/ modules/2.6.28-15-generic/kernel/sound/core/snd.ko


So I guess stap is just trying to use the first one, without even looking for the second. Is there any way I can specify the location?

Thanks again,

Regards,

--
Roberto Jung Drebes - Tokyo, Japan
<drebes@gmail.com>
http://japao.drebes.org/








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