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]

about cross-instrumentation


hi --
I have a problem about cross-instrumentation

my environment:

host system:
OS: CentOs-5.3
gcc: 4.1.2 (version)
libc: 2.5 (version)
systemtap: systemtap-1.2.tar.gz

kernel source: linux-2.6.32.15 patched utrace.patch and configure
which systemtap required.   and we delete much configure option for
cut our system.

target system:
OS: redhat 9 updataed
gcc: none
libc: 2.5(version)
kernel: copy from host system bzImage
systemtap run
uprobes.ko


step:

host system

stap -vv -p4 -r /usr/src/linux u_globalvar2.stp -m u_glo

u_globalvar2.stp
   #! /usr/bin/env stap
   probe process("./globalvartest").statement("*@globalvartest.c:14") {
            printf("line 14: fd = %d\n", $fd)
   }
and get u_glo.ko

target system
insmod uprobes.ko
mount -t debugfs none /sys/kernel/debug
staprun -vv -u u_glo.ko

and get informantion like
bash-2.05b# staprun -vv -u u_glo.ko
staprun:main:273 modpath="u_glo.ko", modname="u_glo"
staprun:init_staprun:211 init_staprun
spawning: /bin/grep -q unregister_uprobe /proc/kallsyms
staprun:insert_module:60 inserting module
staprun:insert_module:79 module options: _stp_bufsize=0
staprun:check_signature:246 checking signature for /root/u_glo.ko
Certificate db /neteye/etc/systemtap/staprun permissions too loose
staprun:check_signature:258 verify_module returns 0
staprun:init_ctl_channel:31 Opened /sys/kernel/debug/systemtap/u_glo/.cmd (3)
staprun:close_ctl_channel:50 Closed ctl fd 3
execing: /neteye/bin/systemtap/stapio -vv -u u_glo.ko
stapio:main:37 modpath="u_glo.ko", modname="u_glo"
stapio:init_stapio:315 init_stapio
stapio:init_ctl_channel:31 Opened /sys/kernel/debug/systemtap/u_glo/.cmd (3)
stapio:stp_main_loop:491 in main loop
stapio:stp_main_loop:498 nb=4
stapio:init_relayfs:238 initializing relayfs
stapio:init_relayfs:262 attempting to open
/sys/kernel/debug/systemtap/u_glo/trace0
stapio:init_relayfs:262 attempting to open
/sys/kernel/debug/systemtap/u_glo/trace1
stapio:init_relayfs:268 ncpus=1, bulkmode = 0
stapio:init_relayfs:345 starting threads
stapio:stp_main_loop:498 nb=12
stapio:stp_main_loop:543 probe_start() returned 0



stapio:stp_main_loop:498 nb=60
ERROR: __stp_tf_add_map returned error -12 on pid 8910
stapio:stp_main_loop:498 nb=60
ERROR: __stp_tf_add_map returned error -12 on pid 8910



I have no idea to do....
could you help me
and I have cross-instrumentation successful between two fedora13 use
the some script


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