Comment 2 for bug 106957

Revision history for this message
Sylvain Pasche (sylvain-pasche) wrote :

I installed systemtap, and tried the sample from the tutorial: http://sources.redhat.com/cgi-bin/cvsweb.cgi/~checkout~/doc/tutorial/strace-open.stp?rev=1.2&content-type=text/plain&cvsroot=systemtap

# stap strace-open.stp
semantic error: libdwfl failure (dwfl_linux_kernel_report_offline): No such file or directory while resolving probe point kernel.function("sys_open")?
semantic error: cannot find kernel debuginfo while resolving probe point kernel.function("sys32_open")?
semantic error: no match for probe point while resolving probe point syscall.open
Pass 2: analysis failed. Try again with more '-v' (verbose) options.

Then with the help of strace, I saw that the stap process wanted to access /boot/vmlinux-2.6.20-15-generic

So I installed the kernel debug package and made the symlink:

# apt-get install linux-image-debug-2.6.20-15-generic
# cd /boot
# ln -s vmlinux-dbg-2.6.20-15-generic vmlinux-2.6.20-15-generic

And afterwards, the strace-open.stp sample works as expected.

Of course, systemtap still can run if you don't have the kernel debug package installed, but you won't be able to use the probes referring to symbol names.