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]

RelayFS does not appear to be in this kernel -> Pass 4: compilation failed


I'm trying to use SystemTap.

I followed the instructions here:

http://sourceware.org/systemtap/wiki/SystemTapWithSelfBuiltKernel


I built the kernel with these options:


Kernel hacking  --->
    [*] Kernel debugging
        [*]   Compile the kernel with debug info
Instrumentation Support  --->
    [*] Kprobes (EXPERIMENTAL)


And also, with CONFIG_RELAY, despite the documentation says it's optional.


General setup  --->
    [*] Kernel->user space relay support (formerly relayfs)


Now, I try to run a simple "hello world", but it fails with:


/usr/local/share/systemtap/runtime/transport/relayfs.c:17:2: error: #error "RelayFS does not appear to be in this kernel!"
/usr/local/share/systemtap/runtime/transport/relayfs.c:23:30: error: linux/relayfs_fs.h: No such file or directory
cc1: warnings being treated as errors



What am I missing? I'm running 2.6.20.4 kernel.


# stap -vve 'probe begin { log("hello world") exit () }'
SystemTap translator/driver (version 0.5.14 built 2007-04-14)
(Using Red Hat elfutils 0.125 libraries.)
Copyright (C) 2005-2007 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
Created temporary directory "/root/tmp/stap2lbmof"
Searched '/usr/local/share/systemtap/tapset/2.6.20.4-4mdvtmbcustom/i686/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/2.6.20.4-4mdvtmbcustom/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/2.6.20.4/i686/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/2.6.20.4/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/2.6.20/i686/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/2.6.20/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/2.6/i686/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/2.6/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/i686/*.stp', match count 1
Searched '/usr/local/share/systemtap/tapset/*.stp', match count 34
Searched '/usr/local/share/systemtap/tapset/LKET/2.6.20.4-4mdvtmbcustom/i686/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/LKET/2.6.20.4-4mdvtmbcustom/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/LKET/2.6.20.4/i686/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/LKET/2.6.20.4/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/LKET/2.6.20/i686/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/LKET/2.6.20/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/LKET/2.6/i686/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/LKET/2.6/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/LKET/i686/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/LKET/*.stp', match count 19
Pass 1: parsed user script and 54 library script(s) in 300usr/10sys/458real ms.
Pass 2: analyzed script: 1 probe(s), 2 function(s), 0 embed(s), 0 global(s) in 10usr/0sys/6real ms.
Pass 3: translated to C into "/root/tmp/stap2lbmof/stap_c0214b52f983948bad6db7c010ab7cb9_341.c" in 0usr/0sys/0real ms.
Running make -C "/lib/modules/2.6.20.4-4mdvtmbcustom/build" M="/root/tmp/stap2lbmof" modules V=1
make: Entering directory `/usr/src/2.6.20.4-tmb-4mdv'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /root/tmp/stap2lbmof/.tmp_versions
rm -f /root/tmp/stap2lbmof/.tmp_versions/*
make -f scripts/Makefile.build obj=/root/tmp/stap2lbmof
gcc -m32 -Wp,-MD,/root/tmp/stap2lbmof/.stap_c0214b52f983948bad6db7c010ab7cb9_341.o.d -nostdinc -isystem /usr/lib/gcc/i586-mandriva-linux-gnu/4.1.2/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -pipe -msoft-float -mregparm=3 -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -Iinclude/asm-i386/mach-default -fomit-frame-pointer -g -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -DSTAPCONF_HRTIMER_REL -freorder-blocks -Wno-unused -Werror -I"/usr/local/share/systemtap/runtime" -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(stap_c0214b52f983948bad6db7c010ab7cb9_341)"


-D"KBUILD_MODNAME=KBUILD_STR(stap_c0214b52f983948bad6db7c010ab7cb9_341)" -c -o /root/tmp/stap2lbmof/.tmp_stap_c0214b52f983948bad6db7c010ab7cb9_341.o /root/tmp/stap2lbmof/stap_c0214b52f983948bad6db7c010ab7cb9_341.c
In file included from /usr/local/share/systemtap/runtime/transport/transport.c:24,
from /usr/local/share/systemtap/runtime/print.c:17,
from /usr/local/share/systemtap/runtime/runtime.h:81,
from /root/tmp/stap2lbmof/stap_c0214b52f983948bad6db7c010ab7cb9_341.c:42:
/usr/local/share/systemtap/runtime/transport/relayfs.c:17:2: error: #error "RelayFS does not appear to be in this kernel!"
/usr/local/share/systemtap/runtime/transport/relayfs.c:23:30: error: linux/relayfs_fs.h: No such file or directory
cc1: warnings being treated as errors
In file included from /usr/local/share/systemtap/runtime/transport/transport.c:24,
from /usr/local/share/systemtap/runtime/print.c:17,
from /usr/local/share/systemtap/runtime/runtime.h:81,
from /root/tmp/stap2lbmof/stap_c0214b52f983948bad6db7c010ab7cb9_341.c:42:
/usr/local/share/systemtap/runtime/transport/relayfs.c:35: warning: 'struct rchan_buf' declared inside parameter list
/usr/local/share/systemtap/runtime/transport/relayfs.c:35: warning: its scope is only this definition or declaration, which is probably not what you want
/usr/local/share/systemtap/runtime/transport/relayfs.c: In function '_stp_subbuf_start':
/usr/local/share/systemtap/runtime/transport/relayfs.c:37: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/transport/relayfs.c: At top level:
/usr/local/share/systemtap/runtime/transport/relayfs.c:49: warning: 'struct rchan_buf' declared inside parameter list
/usr/local/share/systemtap/runtime/transport/relayfs.c: In function '_stp_buf_full':
/usr/local/share/systemtap/runtime/transport/relayfs.c:51: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/transport/relayfs.c: At top level:
/usr/local/share/systemtap/runtime/transport/relayfs.c:55: error: variable 'stp_rchan_callbacks' has initializer but incomplete type
/usr/local/share/systemtap/runtime/transport/relayfs.c:57: error: unknown field 'subbuf_start' specified in initializer
/usr/local/share/systemtap/runtime/transport/relayfs.c:57: warning: excess elements in struct initializer
/usr/local/share/systemtap/runtime/transport/relayfs.c:57: warning: (near initialization for 'stp_rchan_callbacks')
/usr/local/share/systemtap/runtime/transport/relayfs.c:58: error: unknown field 'buf_full' specified in initializer
/usr/local/share/systemtap/runtime/transport/relayfs.c:58: warning: excess elements in struct initializer
/usr/local/share/systemtap/runtime/transport/relayfs.c:58: warning: (near initialization for 'stp_rchan_callbacks')
/usr/local/share/systemtap/runtime/transport/relayfs.c: In function '_stp_remove_relay_dir':
/usr/local/share/systemtap/runtime/transport/relayfs.c:65: warning: implicit declaration of function 'relayfs_remove_dir'
/usr/local/share/systemtap/runtime/transport/relayfs.c: In function 'utt_trace_setup':
/usr/local/share/systemtap/runtime/transport/relayfs.c:92: warning: implicit declaration of function 'relayfs_create_dir'
/usr/local/share/systemtap/runtime/transport/relayfs.c:92: warning: assignment makes pointer from integer without a cast
/usr/local/share/systemtap/runtime/transport/relayfs.c:98: warning: implicit declaration of function 'relay_open'
/usr/local/share/systemtap/runtime/transport/relayfs.c:98: warning: assignment makes pointer from integer without a cast
/usr/local/share/systemtap/runtime/transport/relayfs.c:102: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/transport/relayfs.c: In function 'utt_trace_startstop':
/usr/local/share/systemtap/runtime/transport/relayfs.c:141: warning: implicit declaration of function 'relay_flush'
/usr/local/share/systemtap/runtime/transport/relayfs.c: In function 'utt_trace_remove':
/usr/local/share/systemtap/runtime/transport/relayfs.c:154: warning: implicit declaration of function 'relay_close'
In file included from /usr/local/share/systemtap/runtime/print.c:17,
from /usr/local/share/systemtap/runtime/runtime.h:81,
from /root/tmp/stap2lbmof/stap_c0214b52f983948bad6db7c010ab7cb9_341.c:42:
/usr/local/share/systemtap/runtime/transport/transport.c: In function '_stp_lock_debugfs':
/usr/local/share/systemtap/runtime/transport/transport.c:302: warning: assignment makes pointer from integer without a cast
/usr/local/share/systemtap/runtime/transport/transport.c: In function '_stp_get_root_dir':
/usr/local/share/systemtap/runtime/transport/transport.c:351: warning: assignment makes pointer from integer without a cast
make[1]: *** [/root/tmp/stap2lbmof/stap_c0214b52f983948bad6db7c010ab7cb9_341.o] Error 1
make: *** [_module_/root/tmp/stap2lbmof] Error 2
make: Leaving directory `/usr/src/2.6.20.4-tmb-4mdv'
Pass 4: compiled C into "stap_c0214b52f983948bad6db7c010ab7cb9_341.ko" in 1100usr/250sys/1738real ms.
Pass 4: compilation failed. Try again with more '-v' (verbose) options.
Running rm -rf /root/tmp/stap2lbmof



-- Tomasz Chmielewski http://wpkg.org


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