This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Troubleshooting "UNEXPECTED FATAL ERROR in staprun" on ARM9 target.
- From: Grant Edwards <grant dot b dot edwards at gmail dot com>
- To: systemtap at sources dot redhat dot com
- Date: Tue, 31 Aug 2010 14:36:55 +0000 (UTC)
- Subject: Troubleshooting "UNEXPECTED FATAL ERROR in staprun" on ARM9 target.
I figured out (or so I thought) the issues with cross-compiling runtime
support for an ARM9 target (Atmel AT91SAM9G20), but the resulting
staprun dies like so:
# staprun -vvv hello.ko
staprun:parse_modpath:290 inpath=hello.ko
staprun:main:273 modpath="hello.ko", modname="hello"
staprun:init_staprun:211 init_staprun
staprun:insert_module:60 inserting module
staprun:insert_module:79 module options: _stp_bufsize=0
Error inserting module '/root/hello.ko': File exists
Retrying, after attempted removal of module hello (rc 0)
staprun:insert_module:60 inserting module
staprun:insert_module:79 module options: _stp_bufsize=0
staprun:init_ctl_channel:31 Opened
/sys/kernel/debug/systemtap/hello/.cmd (3)
UNEXPECTED FATAL ERROR in staprun. Please file a bug report.
Segmentation fault
Here's how I built hello.ko:
$ stap -p4 -a arm \
-B CROSS_COMPILE=/home/nextgen/toolchain/bin/arm-linux- \
-r /home/nextgen/kernel/linux-2.6.30 \
-m hello hello.stp
And here's what hello.stp looks like:
probe begin
{
print("hello world\n")
exit()
}
Any hints on figuring out what's going wrong?
--
Grant Edwards grant.b.edwards Yow! My NOSE is NUMB!
at
gmail.com