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]

Compilation error when doing user space probe on FC9.


Hi,

Got compilation error when doing userspace probe on FC9. But
"probe process.syscall" works fine.

$ uname -r
2.6.25-14.fc9.x86_64

$ stap -vve 'probe process("/home/wjhuang/test").function("*") {}'
SystemTap translator/driver (version 0.8/0.133 git branch master, commit c1f7a846)
Copyright (C) 2005-2008 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
Session arch: x86_64 release: 2.6.25-14.fc9.x86_64
Created temporary directory "/tmp/stapWDKS9H"
Searched '/usr/local/share/systemtap/tapset/x86_64/*.stp', found 2
Searched '/usr/local/share/systemtap/tapset/*.stp', found 45
Pass 1: parsed user script and 47 library script(s) in 400usr/30sys/1078real ms.
probe main@/home/wjhuang/test.c:10 process=/home/wjhuang/test reloc=.absolute section=.text pc=0x4004df
probe func1@/home/wjhuang/test.c:5 process=/home/wjhuang/test reloc=.absolute section=.text pc=0x4004d0
WARNING: side-effect-free probe 'probe_1386': keyword at <input>:1:1
source: probe process("/home/wjhuang/test").function("*") {}
^
WARNING: side-effect-free probe 'probe_1387': keyword at :1:1
source: probe process("/home/wjhuang/test").function("*") {}
^
Pass 2: analyzed script: 2 probe(s), 0 function(s), 0 embed(s), 0 global(s) in 10usr/0sys/36real ms.
probe_1386 locks nothing
probe_1387 elided, duplicates probe_1386
dump_unwindsyms /home/wjhuang/test index=0 base=0x400000
Found build-id in /home/wjhuang/test, length 20, end at 0x400260
Pass 3: translated to C into "/tmp/stapWDKS9H/stap_c06bc3613a4a8562ca0299c3e5a1924f_510.c" in 180usr/240sys/905real ms.
Pass 4, preamble: (re)building SystemTap's version of uprobes.
Running make -C /usr/local/share/systemtap/runtime/uprobes >/dev/null
In file included from /usr/local/share/systemtap/runtime/uprobes/uprobes_arch.h:2,
from /usr/local/share/systemtap/runtime/uprobes/uprobes.h:99,
from /usr/local/share/systemtap/runtime/uprobes/uprobes.c:42:
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.h: In function ‘arch_get_probept’:
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.h:68: error: ‘struct pt_regs’ has no member named ‘rip’
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.h: In function ‘arch_reset_ip_for_sstep’:
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.h:73: error: ‘struct pt_regs’ has no member named ‘rip’
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.h: In function ‘arch_restore_uret_addr’:
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.h:79: error: ‘struct pt_regs’ has no member named ‘rip’
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.h: In function ‘arch_get_cur_sp’:
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.h:84: error: ‘struct pt_regs’ has no member named ‘rsp’
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:47:27: error: asm/tracehook.h: No such file or directory
/usr/local/share/systemtap/runtime/uprobes/uprobes.c: In function ‘utask_quiesce_pending_sigtrap’:
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1871: error: implicit declaration of function ‘utrace_native_view’
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1871: warning: assignment makes pointer from integer without a cast
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1872: warning: passing argument 3 of ‘utrace_regset’ from incompatible pointer type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1872: warning: assignment from incompatible pointer type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1876: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1877: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1878: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1881: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1884: error: dereferencing pointer to incomplete type
In file included from /usr/local/share/systemtap/runtime/uprobes/uprobes_arch.c:2,
from /usr/local/share/systemtap/runtime/uprobes/uprobes.c:2587:
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.c: In function ‘uprobe_pre_ssout’:
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.c:513: error: ‘struct pt_regs’ has no member named ‘rip’
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.c:514: error: ‘struct pt_regs’ has no member named ‘rip’
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.c:517: error: ‘struct pt_regs’ has no member named ‘rax’
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.c:518: error: ‘struct pt_regs’ has no member named ‘rax’
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.c:520: error: ‘struct pt_regs’ has no member named ‘rcx’
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.c:521: error: ‘struct pt_regs’ has no member named ‘rcx’
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.c: In function ‘uprobe_post_ssout’:
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.c:604: error: ‘struct pt_regs’ has no member named ‘rax’
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.c:606: error: ‘struct pt_regs’ has no member named ‘rcx’
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.c:632: error: ‘struct pt_regs’ has no member named ‘rip’
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.c:635: error: ‘struct pt_regs’ has no member named ‘rsp’
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.c:641: error: ‘struct pt_regs’ has no member named ‘rip’
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.c:642: error: ‘struct pt_regs’ has no member named ‘rsp’
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.c:646: error: ‘struct pt_regs’ has no member named ‘rip’
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.c:650: error: ‘struct pt_regs’ has no member named ‘rip’
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.c:657: error: ‘struct pt_regs’ has no member named ‘rip’
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.c:659: error: ‘struct pt_regs’ has no member named ‘rip’
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.c: In function ‘arch_hijack_uret_addr’:
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.c:678: error: ‘struct pt_regs’ has no member named ‘rsp’
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.c:690: error: ‘struct pt_regs’ has no member named ‘rsp’
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.c:697: error: ‘struct pt_regs’ has no member named ‘rsp’
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.c:697: error: ‘struct pt_regs’ has no member named ‘rip’
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.c: In function ‘arch_predict_sp_at_ret’:
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.c:710: error: ‘struct pt_regs’ has no member named ‘rsp’
/usr/local/share/systemtap/runtime/uprobes/uprobes_x86_64.c:712: error: ‘struct pt_regs’ has no member named ‘rsp’
make[2]: *** [/usr/local/share/systemtap/runtime/uprobes/uprobes.o] Error 1
make[1]: *** [_module_/usr/local/share/systemtap/runtime/uprobes] Error 2
make: *** [default] Error 2
uprobes rebuild rc=512
Pass 4: compiled C into "stap_c06bc3613a4a8562ca0299c3e5a1924f_510.ko" in 1160usr/1980sys/7120real ms.
Pass 4: compilation failed. Try again with another '--vp 0001' option.
Running rm -rf /tmp/stapWDKS9H




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