[opensuse-factory] systemtap anyone?

Dear group, I cannot get simple systemtap scripts running. I have 11.3 RC1 with the default kernel running. and the packages kernel-default-debuginfo and kernel-default-devel packages installed. 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") Of course the kernel has a vfs_read() and I can get its address with grep vfs_read /proc/kallsyms even if the kernel-default-debuginfo package is not installed. 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? Am I just too stupid? I hope the latter is the case and someone could give me some direction. Kind regards Stefan -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org

Am Freitag 18 Juni 2010 schrieb Stefan Quandt:
Am I just too stupid?
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. Greetings, Stephan -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org

On Jun 21, 10 10:58:30 +0200, Stephan Kulow wrote:
# 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()) }'
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

Am Freitag 18 Juni 2010 schrieb Stefan Quandt:
Am I just too stupid?
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. Greetings, Stephan -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org

On Jun 21, 10 10:58:30 +0200, Stephan Kulow wrote:
# 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()) }'
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
participants (3)
-
Juergen Weigert
-
Stefan Quandt
-
Stephan Kulow