On Jun 21, 10 10:58:30 +0200, Stephan Kulow wrote:
Am Freitag 18 Juni 2010 schrieb Stefan Quandt:
If I run stap on a probe as simple as probe vfs.read { printf("read performed\n"); exit() } it fails on pass 2 with WARNING: cannot find module kernel debuginfo: No DWARF information found semantic error: no match while resolving probe point kernel.function("vfs_read")
# this is what I did with 11.2: sudo zypper in systemtap systemtap-runtime systemtap-docs # check which kernel I have: rpm -qa kernel\* kernel-firmware-20090821-3.1.noarch kernel-desktop-2.6.31.12-0.2.1.i586 # okay, see if we have exactly matching -devel packages? zypper se -s kernel-desktop-devel kernel-desktop-devel | package | 2.6.31.12-0.2.1 kernel-desktop-devel | package | 2.6.31.5-0.1.1 kernel-desktop-devel-debuginfo | package | 2.6.31.5-0.1.1 # sigh, let us hope that .5 is okay for .12 kernel, lets give it a try: sudo zypper in kernel-desktop-devel sudo zypper in kernel-desktop-devel-debuginfo # a one-liner test: sudo stap -c /bin/sync -e 'probe kernel.function("sys_sync") { printf("sys_sync pid=%d\n", pid()) }'
Does that mean that the 11.3 kernel debug info package is inconsistent? Is there anyone running systemtap on 11.3? Does openSuse any testing on the systemtap package? The preload package uses a kquery, so I can confirm it works in general.
I did the above on 11.2, I'd trust 11.3 should do it too.
It's a very fragile piece of software, so I wouldn't worry about your intellegence too much. But try if adding kernel-default-devel-debuginfo helps.
Not sure if it makes any difference, I have kernel-desktop-2.6.31.12-0.2.1.i586, so I made sure I have the exact matchig kernel-desktop-* packages. This was the most tricky part. Zypper always wanted me to install some kernel-desktop-2.6.31.5-* stuff instead. Probably dependencies are lacking. cheers, JW- -- o \ Juergen Weigert paint it green! __/ _=======.=======_ <V> | jw@suse.de back to ascii! __/ _---|____________\/ \ | 0911 74053-508 __/ (____/ /\ (/) | _____________________________/ _/ \_ vim:set sw=2 wm=8 SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) "You are trying to use packages from project 'openSUSE:11.2'. Note that malicious packages can compromise your system." -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org