Summary: | make systemtap 0.6.2/0.131 work on F8 2.6.21.7-2.fc8xen | ||
---|---|---|---|
Product: | systemtap | Reporter: | Eugene Teo <eteo> |
Component: | runtime | Assignee: | Eugene Teo <eteo> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mhiramat |
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Attachments: |
stap -ve 'probe begin { printf("hello world\n") }' -v &>log.txt
stap -DSTAPCONF_INODE_PRIVATE -ve 'probe begin { printf("hello world\n") }' -v &>log2.txt |
Description
Eugene Teo
2008-03-17 03:27:05 UTC
Created attachment 2329 [details]
stap -ve 'probe begin { printf("hello world\n") }' -v &>log.txt
Created attachment 2330 [details]
stap -DSTAPCONF_INODE_PRIVATE -ve 'probe begin { printf("hello world\n") }' -v &>log2.txt
The operative gcc warning is "warning: pointer of type 'void *' used in arithmetic", which is a consequence of -Wpointer-arith. I don't know why this warning is turned on in your build. Regardless, our own code should not calculate with uncast void*'s, which appears to be gnu-c-ism, but rather cast to char*'s first. Looks like -Wpointer-arith is from /lib/modules/2.6.21.7-2.fc8xen/build/Makefile: 315 CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ 316 -fno-strict-aliasing -fno-common \ 317 -Werror-implicit-function-declaration -Wpointer-arith Removing -Wpointer-arith, and running scripts, will trigger the following error: stap_872252efaf2a43c17f3b0b219f69fcf2_15559: Unknown symbol tsc_khz $ uname -rm 2.6.21.7-2.fc8xen x86_64 tsc_khz is not exported. $ cat runtime/autoconf-tsc-khz.c #include <linux/version.h> #include <asm/tsc.h> #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)) && defined(__i386__) <--- removing the arch test will work. x64 is not tested, and so it assumes that tsc_khz is exported when it's not. runtime/autoconf* change committed: http://sources.redhat.com/ml/systemtap-cvs/2008-q1/msg00202.html -Wpointer-arith in kernel-xen reported: https://bugzilla.redhat.com/show_bug.cgi?id=437807 Thanks, Eugene The systemtap runtime now builds with -Wpointer-arith; the kernel's own include/linux/relay.h file doesn't, but that's beyond our control. |