This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Error inserting module and File exists error while running staprun on target device


Hello everyone, 

I am having trouble executing systemtap .ko modules on my target device.
 
The target configuration I am using is as follows:
Board: OMAP5432 EVM
(http://www.svtronics.com/index.php?route=product/product&product_id=33) 
OS: Android JellyBean
Kernel: K3.4 
 
The host system is Ubuntu 12.04 x64.
                         
Reference instructions are from http://omappedia.org/wiki/Systemtap. 

After building a module (e.g. why.ko) and attempting to execute it with
staprun, an error indicating âFile Existsâ is presented. After multiple
configuration changes and attempts, I have been unable to resolve this
error. Below is an example execution of why.ko:

root@android:/data/systemtap-2.0-macharm/bin # ./staprun -vvvvvv why

   output:
staprun:parse_modpath:364 inpath=why
staprun:parse_modpath:409 modpath="/lib/modules/3.4.34/systemtap/why.ko"
staprun:main:395 modpath="/lib/modules/3.4.34/systemtap/why.ko",
modname="why"
staprun:init_staprun:313 init_staprun
staprun:insert_module:73 inserting module
/lib/modules/3.4.34/systemtap/why.ko
staprun:insert_module:99 module options: _stp_bufsize=0
staprun:insert_module:107 module path canonicalized to
'/system/lib/modules/3.4.34/systemtap/why.ko'
Error inserting module '/lib/modules/3.4.34/systemtap/why.ko': File exists
 
When I remove the why.ko file from the /lib/modules/3.4.34/systemtap/
directory and run the same command again, I encounter:

root@android:/data/systemtap-2.0-macharm/bin # ./staprun -vvvvv why       

    output:
staprun:parse_modpath:364 inpath=why
staprun:parse_modpath:409 modpath="/lib/modules/3.4.34/systemtap/why.ko"
staprun:main:395 modpath="/lib/modules/3.4.34/systemtap/why.ko",
modname="why"
staprun:init_staprun:313 init_staprun
staprun:insert_module:73 inserting module
/lib/modules/3.4.34/systemtap/why.ko
staprun:insert_module:99 module options: _stp_bufsize=0
ERROR: Unable to canonicalize path "/lib/modules/3.4.34/systemtap/why.ko":
No such file or directory
Error inserting module '/lib/modules/3.4.34/systemtap/why.ko': Unknown
symbol in module


This would actually be the same output I would get before I copy the why.ko
file to the âlib/modules/3.4.34/systemtap directory. Any feedback on this
topic is greatly appreciated.
 
Thanks




--
View this message in context: http://sourceware-org.1504.n7.nabble.com/Error-inserting-module-and-File-exists-error-while-running-staprun-on-target-device-tp233663.html
Sent from the Sourceware - systemtap mailing list archive at Nabble.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]