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 in stap


My systemtap has git-pulled and updated as of now.   While doing some
script processing, I got the following errors:


/usr/local/share/systemtap/runtime/autoconf-procfs-owner.c: In function ‘bar’:
/usr/local/share/systemtap/runtime/autoconf-procfs-owner.c:7: error:
‘struct proc_dir_entry’ has no member named ‘owner’
if gcc -D__KERNEL__  -Iinclude
-I/sdb1/download/linux-2.6-latest/arch/x86/include -include
include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes
-Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Os -m64 -mtune=generic
-mno-red-zone -mcmodel=kernel -funit-at-a-time
-maccumulate-outgoing-args -DCONFIG_AS_CFI=1
-DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare
-fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
-fno-stack-protector -fno-omit-frame-pointer
-fno-optimize-sibling-calls -g -pg -Wdeclaration-after-statement
-Wno-pointer-sign -fwrapv    -DKBUILD_BASENAME=\"stap_9237\" -Werror
-S -o /dev/null -xc
"/usr/local/share/systemtap/runtime"/autoconf-alloc-percpu-align.c;
then echo "#define STAPCONF_ALLOC_PERCPU_ALIGN 1"; fi >>
/tmp/stap2jIKVp/stapconf_9237.h
if gcc -D__KERNEL__  -Iinclude
-I/sdb1/download/linux-2.6-latest/arch/x86/include -include
include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes
-Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Os -m64 -mtune=generic
-mno-red-zone -mcmodel=kernel -funit-at-a-time
-maccumulate-outgoing-args -DCONFIG_AS_CFI=1
-DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare
-fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
-fno-stack-protector -fno-omit-frame-pointer
-fno-optimize-sibling-calls -g -pg -Wdeclaration-after-statement
-Wno-pointer-sign -fwrapv    -DKBUILD_BASENAME=\"stap_9237\" -Werror
-S -o /dev/null -xc
"/usr/local/share/systemtap/runtime"/autoconf-find-task-pid.c; then
echo "#define STAPCONF_FIND_TASK_PID 1"; fi >>
/tmp/stap2jIKVp/stapconf_9237.h
/usr/local/share/systemtap/runtime/autoconf-find-task-pid.c: In function ‘foo’:
/usr/local/share/systemtap/runtime/autoconf-find-task-pid.c:4: error:
implicit declaration of function ‘find_task_by_pid’
cc1: warnings being treated as errors
/usr/local/share/systemtap/runtime/autoconf-find-task-pid.c:4: error:
initialization makes pointer from integer without a cast
if gcc -D__KERNEL__  -Iinclude
-I/sdb1/download/linux-2.6-latest/arch/x86/include -include
include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes
-Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Os -m64 -mtune=generic
-mno-red-zone -mcmodel=kernel -funit-at-a-time
-maccumulate-outgoing-args -DCONFIG_AS_CFI=1
-DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare
-fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
-fno-stack-protector -fno-omit-frame-pointer
-fno-optimize-sibling-calls -g -pg -Wdeclaration-after-statement
-Wno-pointer-sign -fwrapv    -DKBUILD_BASENAME=\"stap_9237\" -Werror
-S -o /dev/null -xc
"/usr/local/share/systemtap/runtime"/autoconf-x86-gs.c; then echo
"#define STAPCONF_X86_GS 1"; fi >> /tmp/stap2jIKVp/stapconf_9237.h
if gcc -D__KERNEL__  -Iinclude
-I/sdb1/download/linux-2.6-latest/arch/x86/include -include
include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes
-Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Os -m64 -mtune=generic
-mno-red-zone -mcmodel=kernel -funit-at-a-time
-maccumulate-outgoing-args -DCONFIG_AS_CFI=1
-DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare
-fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
-fno-stack-protector -fno-omit-frame-pointer
-fno-optimize-sibling-calls -g -pg -Wdeclaration-after-statement
-Wno-pointer-sign -fwrapv    -DKBUILD_BASENAME=\"stap_9237\" -Werror
-S -o /dev/null -xc
"/usr/local/share/systemtap/runtime"/autoconf-save-stack-trace.c; then
echo "#define STAPCONF_KERNEL_STACKTRACE 1"; fi >>
/tmp/stap2jIKVp/stapconf_9237.h
/usr/local/share/systemtap/runtime/autoconf-save-stack-trace.c: In
function ‘foo’:
/usr/local/share/systemtap/runtime/autoconf-save-stack-trace.c:14:
error: ‘tsk’ undeclared (first use in this function)
/usr/local/share/systemtap/runtime/autoconf-save-stack-trace.c:14:
error: (Each undeclared identifier is reported only once
/usr/local/share/systemtap/runtime/autoconf-save-stack-trace.c:14:
error: for each function it appears in.)
if gcc -D__KERNEL__  -Iinclude
-I/sdb1/download/linux-2.6-latest/arch/x86/include -include
include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes
-Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Os -m64 -mtune=generic
-mno-red-zone -mcmodel=kernel -funit-at-a-time
-maccumulate-outgoing-args -DCONFIG_AS_CFI=1
-DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare
-fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
-fno-stack-protector -fno-omit-frame-pointer
-fno-optimize-sibling-calls -g -pg -Wdeclaration-after-statement
-Wno-pointer-sign -fwrapv    -DKBUILD_BASENAME=\"stap_9237\" -Werror
-S -o /dev/null -xc
"/usr/local/share/systemtap/runtime"/autoconf-asm-syscall.c; then echo
"#define STAPCONF_ASM_SYSCALL_H 1"; fi >>
/tmp/stap2jIKVp/stapconf_9237.h
  gcc -Wp,-MD,/tmp/stap2jIKVp/.stap_9237.o.d  -nostdinc -isystem
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/include -Iinclude
-I/sdb1/download/linux-2.6-latest/arch/x86/include -include
include/linux/autoconf.h -D__KERNEL__ -Wall -Wundef
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Os -m64 -mtune=generic
-mno-red-zone -mcmodel=kernel -funit-at-a-time
-maccumulate-outgoing-args -DCONFIG_AS_CFI=1
-DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare
-fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
-fno-stack-protector -fno-omit-frame-pointer
-fno-optimize-sibling-calls -g -pg -Wdeclaration-after-statement
-Wno-pointer-sign -fwrapv -Iinclude2/asm/mach-default -include
/tmp/stap2jIKVp/stapconf_9237.h -ftime-report -Q -freorder-blocks
-Wno-unused -Werror -I"/usr/local/share/system

And the compilation outcome:

aprun -v -v /tmp/stap2jIKVp/stap_9237.ko
staprun:main:269 modpath="/tmp/stap2jIKVp/stap_9237.ko", modname="stap_9237"
staprun:init_staprun:207 init_staprun
staprun:insert_module:47 inserting module
staprun:insert_module:66 module options: _stp_bufsize=0
Error inserting module '/tmp/stap2jIKVp/stap_9237.ko': Invalid module format
Retrying, after attempted removal of module stap_9237 (rc -1)
staprun:insert_module:47 inserting module
staprun:insert_module:66 module options: _stp_bufsize=0
Error inserting module '/tmp/stap2jIKVp/stap_9237.ko': Invalid module format
Pass 5: run completed in 10usr/10sys/12real ms.
Pass 5: run failed.  Try again with another '--vp 00001' option.
Keeping temporary directory "/tmp/stap2jIKVp"


And dmesg shows:

[ 1429.082734] stap_9237: disagrees about version of symbol module_layout
[ 1429.087594] stap_9237: disagrees about version of symbol module_layout


My script is just a simple netcore analysis:

probe kernel.function("*@net/core/dev.c").call {
  printf("%s -> %s\n", thread_indent(1), probefunc());
  print_backtrace();
  printf("\n");
}

Any ideas?
-- 
Regards,
Peter Teoh


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