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]

Re: ERROR: Build-id mismatch: "kernel" vs. "vmlinux" byte 0 (0x00 vs 0x00)


On 04/08/2010 04:55 PM, Frank Ch. Eigler wrote:
-14 is -EFAULT.  This should not happen unless our address
calculations have gotten messed up somehow.  Try rerunning stap with
-DDEBUG_TRANS -DDEBUG_SYMBOLS.
Here are full logs with " stap --vp 9999 -DDEBUG_TRANS -DDEBUG_SYMBOLS"

The working dropwatch:
http://karl.hiramoto.org/temp/stap_dropwatch.txt

The non working tcp_trace
http://karl.hiramoto.org/temp/stap_tcp_trace.txt

there's also some errors like:

if gcc -D__KERNEL__  -I/home/karl/Work/linux-2.6/arch/x86/include -Iinclude  -include include/generated/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=core2 -mtune=generic -Wa,-mtune=generic32 -ffreestanding -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 -fno-strict-overflow    -DKBUILD_BASENAME=\"stap_d6e88c4e8f2263618d7bbc0d0f11ab92_32276\" -Werror -S -o /dev/null -xc  "/usr/share/systemtap/runtime"/autoconf-grsecurity.c; then echo "#define STAPCONF_GRSECURITY
1"; fi>>  /tmp/stapEyVbEM/stapconf_6415a8d55b7118f55f4e4a8368ac8512_390.h
/usr/share/systemtap/runtime/autoconf-grsecurity.c: In function ‘foo’:
/usr/share/systemtap/runtime/autoconf-grsecurity.c:10: error: ‘struct module’ has no member named ‘init_size_rw’
/usr/share/systemtap/runtime/autoconf-grsecurity.c:10: error: ‘struct module’ has no member named ‘init_size_rx’
/usr/share/systemtap/runtime/autoconf-grsecurity.c:10: error: ‘struct module’ has no member named ‘core_size_rw’
/usr/share/systemtap/runtime/autoconf-grsecurity.c:10: error: ‘struct module’ has no member named ‘core_size_rx’


if gcc -D__KERNEL__ -I/home/karl/Work/linux-2.6/arch/x86/include -Iinclude -include include/generated/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=core2 -mtune=generic -Wa,-mtune=generic32 -ffreestanding -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 -fno-strict-overflow -DKBUILD_BASENAME=\"stap_d6e88c4e8f2263618d7bbc0d0f11ab92_32276\" -Werror -S -o /dev/null -xc "/usr/share/systemtap/runtime"/autoconf-utrace-regset.c; then echo "#define STAPCONF_UTRACE_R EGSET 1"; fi>> /tmp/stapEyVbEM/stapconf_6415a8d55b7118f55f4e4a8368ac8512_390.h /usr/share/systemtap/runtime/autoconf-utrace-regset.c: In function ‘foobar’: /usr/share/systemtap/runtime/autoconf-utrace-regset.c:5: error: implicit declaration of function utrace_native_view cc1: warnings being treated as errors /usr/share/systemtap/runtime/autoconf-utrace-regset.c:5: error: initialization makes pointer from integer without a cast /usr/share/systemtap/runtime/autoconf-utrace-regset.c:6: error: dereferencing pointer to incomplete type /usr/share/systemtap/runtime/autoconf-utrace-regset.c:7: error: dereferencing pointer to incomplete type /usr/share/systemtap/runtime/autoconf-utrace-regset.c:7: error: dereferencing pointer to incomplete type



This looks fine; does it match `od -t x4 /sys/kernel/notes` ?

They look the same but with the endianness swapped, not sure if thats normal.

# readelf -x .notes /usr/src/linux/vmlinux

Hex dump of section '.notes':
0xc14668b0 04000000 14000000 03000000 474e5500 ............GNU.
0xc14668c0 6a9e175e 82c9b226 2211855b 82f64361 j..^...&"..[..Ca
0xc14668d0 4b001d11 K...

# od -t x4 /sys/kernel/notes
0000000 00000004 00000014 00000003 00554e47
0000020 5e179e6a 26b2c982 5b851122 6143f682
0000040 111d004b
0000044


Thanks


--
Karl


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