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]

Current cvs version and the runtime/probes/bench example


I tried compiling the runtime/probes directory today based on the latest
CVS tree (8/22 ~6pm PDT) and am getting errors (see below). I seem to
remember a discussion about changes to relayfs that can cause issues, is
that what I'm seeing? Or is it something about my environment/system -
Fedora Core 4 (Linux cspiraki-lnote 2.6.12-1.1398_FC4 #1 Fri Jul 15
00:52:32 EDT 2005 i686 i686 i386 GNU/Linux).

-- charles

[cspiraki@cspiraki-lnote bench]$ ../build_probe
Building bench
Building bench_io1
Building bench_io2
Building bench_io3
Building bench_io4
Building bench_ret

------------ Compile error in bench_ret -------------------

make V=1 -C /lib/modules/2.6.12-1.1398_FC4/build include
M=/home/cspiraki/systemtap/development/src/runtime/probes/bench
RT=/home/cspiraki/systemtap/development/src/runtime/probes/bench/../..
EXTRA_CFLAGS="-I
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../.. -I
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../rela
yfs -D KALLSYMS_LOOKUP_NAME=0xc014a214 -D KALLSYMS_LOOKUP=0xc014a28f
-DKTA=0xc013b68a" modules
make[1]: Entering directory `/usr/src/kernels/2.6.12-1.1398_FC4-i686'
make[1]: Nothing to be done for `include'.
mkdir -p
/home/cspiraki/systemtap/development/src/runtime/probes/bench/.tmp_versi
ons
make -f scripts/Makefile.build
obj=/home/cspiraki/systemtap/development/src/runtime/probes/bench
  gcc
-Wp,-MD,/home/cspiraki/systemtap/development/src/runtime/probes/bench/.b
ench_ret.o.d  -nostdinc -isystem
/usr/lib/gcc/i386-redhat-linux/4.0.1/include -D__KERNEL__ -Iinclude
-Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
-fno-common -ffreestanding -O2     -fomit-frame-pointer -g -pipe
-msoft-float -m32 -fno-builtin-sprintf -fno-builtin-log2
-fno-builtin-puts  -mpreferred-stack-boundary=2 -fno-unit-at-a-time
-march=i686 -mtune=pentium4 -mregparm=3 -Iinclude/asm-i386/mach-default
-Wdeclaration-after-statement -Wno-pointer-sign -I
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../.. -I
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../rela
yfs -D KALLSYMS_LOOKUP_NAME=0xc014a214 -D KALLSYMS_LOOKUP=0xc014a28f
-DKTA=0xc013b68a  -DMODULE -DKBUILD_BASENAME=bench_ret
-DKBUILD_MODNAME=bench_ret -c -o
/home/cspiraki/systemtap/development/src/runtime/probes/bench/.tmp_bench
_ret.o
/home/cspiraki/systemtap/development/src/runtime/probes/bench/bench_ret.
c
In file included from
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../tran
sport/transport.c:40,
                 from
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../io.c
:13,
                 from
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../prin
t.c:6,
                 from
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../runt
ime.h:58,
                 from
/home/cspiraki/systemtap/development/src/runtime/probes/bench/bench_ret.
c:5:
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../tran
sport/procfs.c: In function \u2018_stp_register_procfs\u2019:
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../tran
sport/procfs.c:252: warning: unused variable \u2018buf\u2019
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../tran
sport/procfs.c:250: warning: unused variable \u2018j\u2019
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../tran
sport/procfs.c: In function \u2018_stp_unregister_procfs\u2019:
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../tran
sport/procfs.c:343: warning: unused variable \u2018de\u2019
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../tran
sport/procfs.c:341: warning: unused variable \u2018buf\u2019
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../tran
sport/procfs.c:340: warning: unused variable \u2018i\u2019
In file included from
/home/cspiraki/systemtap/development/src/runtime/probes/bench/bench_ret.
c:6:
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../prob
es.c: At top level:
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../prob
es.c:78: warning: \u2018struct kretprobe\u2019 declared inside parameter
list
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../prob
es.c:78: warning: its scope is only this definition or declaration,
which is probably not what you want
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../prob
es.c: In function \u2018_stp_unregister_kretprobes\u2019:
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../prob
es.c:82: warning: implicit declaration of function
\u2018unregister_kretprobe\u2019
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../prob
es.c:82: error: invalid use of undefined type \u2018struct
kretprobe\u2019
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../prob
es.c:82: error: dereferencing pointer to incomplete type
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../prob
es.c: At top level:
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../prob
es.c:123: warning: \u2018struct kretprobe\u2019 declared inside
parameter list
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../prob
es.c: In function \u2018_stp_register_kretprobes\u2019:
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../prob
es.c:129: error: invalid use of undefined type \u2018struct
kretprobe\u2019
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../prob
es.c:129: error: dereferencing pointer to incomplete type
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../prob
es.c:132: error: invalid use of undefined type \u2018struct
kretprobe\u2019
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../prob
es.c:132: error: dereferencing pointer to incomplete type
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../prob
es.c:137: error: invalid use of undefined type \u2018struct
kretprobe\u2019
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../prob
es.c:137: error: dereferencing pointer to incomplete type
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../prob
es.c:138: warning: implicit declaration of function
\u2018register_kretprobe\u2019
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../prob
es.c:138: error: invalid use of undefined type \u2018struct
kretprobe\u2019
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../prob
es.c:138: error: dereferencing pointer to incomplete type
/home/cspiraki/systemtap/development/src/runtime/probes/bench/../../prob
es.c:145: warning: passing argument 1 of
\u2018_stp_unregister_kretprobes\u2019 from incompatible pointer type
/home/cspiraki/systemtap/development/src/runtime/probes/bench/bench_ret.
c: At top level:
/home/cspiraki/systemtap/development/src/runtime/probes/bench/bench_ret.
c:16: warning: \u2018struct kretprobe_instance\u2019 declared inside
parameter list
/home/cspiraki/systemtap/development/src/runtime/probes/bench/bench_ret.
c:26: error: array type has incomplete element type
/home/cspiraki/systemtap/development/src/runtime/probes/bench/bench_ret.
c:28: error: field name not in record or union initializer
/home/cspiraki/systemtap/development/src/runtime/probes/bench/bench_ret.
c:28: error: (near initialization for \u2018kpr\u2019)
/home/cspiraki/systemtap/development/src/runtime/probes/bench/bench_ret.
c:29: error: field name not in record or union initializer
/home/cspiraki/systemtap/development/src/runtime/probes/bench/bench_ret.
c:29: error: (near initialization for \u2018kpr\u2019)
/home/cspiraki/systemtap/development/src/runtime/probes/bench/bench_ret.
c:32: error: field name not in record or union initializer
/home/cspiraki/systemtap/development/src/runtime/probes/bench/bench_ret.
c:32: error: (near initialization for \u2018kpr\u2019)
/home/cspiraki/systemtap/development/src/runtime/probes/bench/bench_ret.
c:33: error: field name not in record or union initializer
/home/cspiraki/systemtap/development/src/runtime/probes/bench/bench_ret.
c:33: error: (near initialization for \u2018kpr\u2019)
/home/cspiraki/systemtap/development/src/runtime/probes/bench/bench_ret.
c: In function \u2018probe_start\u2019:
/home/cspiraki/systemtap/development/src/runtime/probes/bench/bench_ret.
c:49: error: invalid application of \u2018sizeof\u2019 to incomplete
type \u2018struct kretprobe\u2019
/home/cspiraki/systemtap/development/src/runtime/probes/bench/bench_ret.
c:52: error: invalid application of \u2018sizeof\u2019 to incomplete
type \u2018struct kretprobe\u2019
/home/cspiraki/systemtap/development/src/runtime/probes/bench/bench_ret.
c: In function \u2018probe_exit\u2019:
/home/cspiraki/systemtap/development/src/runtime/probes/bench/bench_ret.
c:59: error: invalid application of \u2018sizeof\u2019 to incomplete
type \u2018struct kretprobe\u2019
make[2]: ***
[/home/cspiraki/systemtap/development/src/runtime/probes/bench/bench_ret
.o] Error 1
make[1]: ***
[_module_/home/cspiraki/systemtap/development/src/runtime/probes/bench]
Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.12-1.1398_FC4-i686'
make: *** [default] Error 2


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