This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Location of modules with debug info
- From: Roberto Jung Drebes <drebes at gmail dot com>
- To: systemtap at sourceware dot org
- Date: Mon, 28 Sep 2009 19:00:12 +0900
- Subject: Location of modules with debug info
Hello there,
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. I also made a symbolic link for the vmlinux at /boot:
[root@rerun modules]# ls -l /boot/vmlinux
lrwxrwxrwx 1 root root 45 2009-09-28 16:28 /boot/vmlinux -> /usr/lib/
debug/boot/vmlinux-2.6.28-15-generic
The probe I want to run just prints a message on every function entry
and exit of a kernel module:
probe module("snd").function("*") {
printf ("%s -> %s\n", thread_indent(1), probefunc())
}
probe module("snd").function("*").return {
printf ("%s -> %s\n", thread_indent(-1), probefunc())
}
But when I try to run it, it complains that it can't find the debug
info for the snd.ko module:
WARNING: cannot find module snd debuginfo: No such file or directory
semantic error: no match while resolving probe point module
("snd").function("*")
WARNING: cannot find module snd debuginfo: No such file or directory
semantic error: no match while resolving probe point module
("snd").function("*").return
semantic error: no probes found
When running it with the --vp 03 option, I see that it's trying to use
the modules at /lib/modules/2.6.28-15-generic (which are the system
modules), not the debug ones in (/usr/lib/debug/lib/modules/2.6.28-15-
generic).
How can I indicate the location of the debug modules?
Thanks in advance,
--
Roberto Jung Drebes - Tokyo, Japan
<drebes@gmail.com>
http://japao.drebes.org/