linux - SystemTap on Android -
when executed command ' staprun ' on android , met following problem :
# /data/systemtap-1.0-omap/bin/staprun /data/local/msyscall_all.ko /data/systemtap-1.0-omap/bin/staprun: 1: syntax error: "(" unexpected #
the module msyscall_all.ko cross-compiled kernel android run on.
firstly, sure msyscall_all.ko exactlly right , because use command ' insomd ' , ' lsmod ' ensure right .i did following :
# lsmod omaplfb 8986 0 - live 0xbf032000 pvrsrvkm 137346 29 omaplfb, live 0xbf000000 # insmod /data/local/msyscall_all.ko # lsmod msyscall_all 1121778 0 - live 0xbf037000 omaplfb 8986 0 - live 0xbf032000 pvrsrvkm 137346 29 omaplfb, live 0xbf000000 #
secondly, followed instruction in :http://omappedia.org/wiki/systemtap#systemtap_1.0_code_update_for_omap_arm_platforms
and systemtap-1.0-omap cross-compiled successfully!! howerver, after used 'adb push' pushed systemtap-1.0-omap android device , ran ,i got error below :
/data/systemtap-1.0-omap/bin/staprun: 1: syntax error: "(" unexpected
when 'staprun' ran on ubuntu ,it gave me advice how run ' staprun ' , , when run on android device ,it went wrong :
# /data/systemtap-1.0-omap/bin/staprun /data/systemtap-1.0-omap/bin/staprun: 1: syntax error: "(" unexpected # exit ubuntu@ubuntu:~$ cd systemtap-1.0-omap/bin/ ubuntu@ubuntu:~/systemtap-1.0-omap/bin$ ./staprun error: need module name or path load. ./staprun [-v] [-c cmd ] [-x pid] [-u user] [-a|-l|-d] [-b bufsize] [-o file [-d] [-s size[,n]]] module [module-options] -v increase verbosity. -c cmd command 'cmd' run , staprun exit when does. '_stp_target' variable contain pid command. -x pid sets '_stp_target' variable pid. -o file send output file. supports strftime(3) formats file. -b buffer size systemtap module specifies buffer size. setting 1 here override value. value should integer between 1 , 4095 assumed buffer size in mb. value per-cpu in bulk mode. -l load module , start probes, detach. -a attach loaded systemtap module. -d delete module. detached or unused modules user has permission access deleted. use "*" (quoted) delete unused modules. -d run in background. requires '-o' option. -s size[,n] switches output file next file when size of file reaches specified size. value should integer greater 1 assumed maximum file size in mb. when number of output files reaches n, switches first output file. can omit second argument. module can either module name or module path. if module name used, looked in following directory: /lib/modules/`uname -r`/systemtap ubuntu@ubuntu:~/systemtap-1.0-omap/bin$
i have tried best , can not solve !!
Comments
Post a Comment