* Latest systemtap fails when used with latest Linux kernel
@ 2009-01-06 7:46 Theodore Ts'o
2009-01-06 8:50 ` Srikar Dronamraju
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Theodore Ts'o @ 2009-01-06 7:46 UTC (permalink / raw)
To: systemtap
Using the latest Systemtap (commit be21f2db) compiling a 2.6.28-git7
kernel, I get this failure....
- Ted
% stap --vp 0001 --vp 0001 helloworld.stp
Running make -C "/lib/modules/2.6.28-05784-gd5b9778/build" M="/tmp/stapsXvMb1" modules >/dev/null
In file included from /usr/local/share/systemtap/runtime/transport/transport.c:23,
from /usr/local/share/systemtap/runtime/print.c:17,
from /usr/local/share/systemtap/runtime/runtime.h:84,
from /tmp/stapsXvMb1/stap_7e482897f22605cdad02e8e11f34d749_334.c:41:
/usr/local/share/systemtap/runtime/transport/../procfs.c: In function â_stp_mkdir_proc_moduleâ:
/usr/local/share/systemtap/runtime/transport/../procfs.c:102: error: âstruct nameidataâ has no member named âdentryâ
/usr/local/share/systemtap/runtime/transport/../procfs.c:103: error: implicit declaration of function âpath_releaseâ
In file included from /usr/local/share/systemtap/runtime/transport/transport.c:35,
from /usr/local/share/systemtap/runtime/print.c:17,
from /usr/local/share/systemtap/runtime/runtime.h:84,
from /tmp/stapsXvMb1/stap_7e482897f22605cdad02e8e11f34d749_334.c:41:
/usr/local/share/systemtap/runtime/transport/utt.c: In function âutt_dropped_openâ:
/usr/local/share/systemtap/runtime/transport/utt.c:199: error: âstruct inodeâ has no member named âuâ
In file included from /usr/local/share/systemtap/runtime/print.c:17,
from /usr/local/share/systemtap/runtime/runtime.h:84,
from /tmp/stapsXvMb1/stap_7e482897f22605cdad02e8e11f34d749_334.c:41:
/usr/local/share/systemtap/runtime/transport/transport.c: In function â_stp_transport_initâ:
/usr/local/share/systemtap/runtime/transport/transport.c:214: error: âstruct task_structâ has no member named âuidâ
/usr/local/share/systemtap/runtime/transport/transport.c:215: error: âstruct task_structâ has no member named âgidâ
In file included from /tmp/stapsXvMb1/stap_7e482897f22605cdad02e8e11f34d749_334.c:42:
/usr/local/share/systemtap/runtime/regs.c: In function â_stp_ret_addrâ:
/usr/local/share/systemtap/runtime/regs.c:49: error: âstruct pt_regsâ has no member named âespâ
/usr/local/share/systemtap/runtime/regs.c: In function â_stp_print_regsâ:
/usr/local/share/systemtap/runtime/regs.c:235: error: âstruct pt_regsâ has no member named âeipâ
/usr/local/share/systemtap/runtime/regs.c:236: error: âstruct pt_regsâ has no member named âespâ
/usr/local/share/systemtap/runtime/regs.c:238: error: âstruct pt_regsâ has no member named âeaxâ
/usr/local/share/systemtap/runtime/regs.c:238: error: âstruct pt_regsâ has no member named âebxâ
/usr/local/share/systemtap/runtime/regs.c:238: error: âstruct pt_regsâ has no member named âecxâ
/usr/local/share/systemtap/runtime/regs.c:238: error: âstruct pt_regsâ has no member named âedxâ
/usr/local/share/systemtap/runtime/regs.c:240: error: âstruct pt_regsâ has no member named âesiâ
/usr/local/share/systemtap/runtime/regs.c:240: error: âstruct pt_regsâ has no member named âediâ
/usr/local/share/systemtap/runtime/regs.c:240: error: âstruct pt_regsâ has no member named âebpâ
/usr/local/share/systemtap/runtime/regs.c:242: error: âstruct pt_regsâ has no member named âxdsâ
/usr/local/share/systemtap/runtime/regs.c:242: error: âstruct pt_regsâ has no member named âxesâ
/usr/local/share/systemtap/runtime/regs.c: In function â_stp_get_spâ:
/usr/local/share/systemtap/runtime/regs.c:417: error: âstruct pt_regsâ has no member named âespâ
/usr/local/share/systemtap/runtime/regs.c:418: error: âstruct pt_regsâ has no member named âespâ
/usr/local/share/systemtap/runtime/regs.c: In function â_stp_get_arg32_by_numberâ:
/usr/local/share/systemtap/runtime/regs.c:505: error: âstruct pt_regsâ has no member named âeaxâ
/usr/local/share/systemtap/runtime/regs.c:506: error: âstruct pt_regsâ has no member named âedxâ
/usr/local/share/systemtap/runtime/regs.c:507: error: âstruct pt_regsâ has no member named âecxâ
In file included from /usr/local/share/systemtap/runtime/stack.c:35,
from /tmp/stapsXvMb1/stap_7e482897f22605cdad02e8e11f34d749_334.c:43:
/usr/local/share/systemtap/runtime/stack-i386.c: In function â__stp_stack_printâ:
/usr/local/share/systemtap/runtime/stack-i386.c:33: error: âstruct pt_regsâ has no member named âespâ
/usr/local/share/systemtap/runtime/stack-i386.c:37: error: âstruct pt_regsâ has no member named âebpâ
In file included from /tmp/stapsXvMb1/stap_7e482897f22605cdad02e8e11f34d749_334.c:43:
/usr/local/share/systemtap/runtime/stack.c: In function â_stp_stack_printâ:
/usr/local/share/systemtap/runtime/stack.c:61: error: âstruct pt_regsâ has no member named âeipâ
/usr/local/share/systemtap/runtime/stack.c:65: error: âstruct pt_regsâ has no member named âeipâ
/usr/local/share/systemtap/runtime/stack.c:67: error: âstruct pt_regsâ has no member named âeipâ
distcc[11858] ERROR: compile /tmp/stapsXvMb1/stap_7e482897f22605cdad02e8e11f34d749_334.c on localhost failed
make[1]: *** [/tmp/stapsXvMb1/stap_7e482897f22605cdad02e8e11f34d749_334.o] Error 1
make: *** [_module_/tmp/stapsXvMb1] Error 2
Pass 4: compiled C into "stap_7e482897f22605cdad02e8e11f34d749_334.ko" in 860usr/790sys/1733real ms.
Pass 4: compilation failed. Try again with another '--vp 0001' option.
Running rm -rf /tmp/stapsXvMb1
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Latest systemtap fails when used with latest Linux kernel
2009-01-06 7:46 Latest systemtap fails when used with latest Linux kernel Theodore Ts'o
@ 2009-01-06 8:50 ` Srikar Dronamraju
2009-01-06 17:49 ` Frank Ch. Eigler
2009-01-06 18:39 ` Frank Ch. Eigler
2 siblings, 0 replies; 7+ messages in thread
From: Srikar Dronamraju @ 2009-01-06 8:50 UTC (permalink / raw)
To: Theodore Ts'o; +Cc: systemtap
Hi Ted,
This error is occuring because of uid,gid, fields in task_struct being
moved over to struct cred patch. Kamalesh has already raised a bug
http://sourceware.org/bugzilla/show_bug.cgi?id=9699 for the same.
--
Thanks and Regards
Srikar
>
> Using the latest Systemtap (commit be21f2db) compiling a 2.6.28-git7
> kernel, I get this failure....
>
> - Ted
>
> % stap --vp 0001 --vp 0001 helloworld.stp
> Running make -C "/lib/modules/2.6.28-05784-gd5b9778/build" M="/tmp/stapsXvMb1" modules >/dev/null
> In file included from /usr/local/share/systemtap/runtime/transport/transport.c:23,
> from /usr/local/share/systemtap/runtime/print.c:17,
> from /usr/local/share/systemtap/runtime/runtime.h:84,
> from /tmp/stapsXvMb1/stap_7e482897f22605cdad02e8e11f34d749_334.c:41:
> /usr/local/share/systemtap/runtime/transport/../procfs.c: In function âÂÂ_stp_mkdir_proc_moduleâÂÂ:
> /usr/local/share/systemtap/runtime/transport/../procfs.c:102: error: âÂÂstruct nameidataâ has no member named âÂÂdentryâÂÂ
> /usr/local/share/systemtap/runtime/transport/../procfs.c:103: error: implicit declaration of function âÂÂpath_releaseâÂÂ
> In file included from /usr/local/share/systemtap/runtime/transport/transport.c:35,
> from /usr/local/share/systemtap/runtime/print.c:17,
> from /usr/local/share/systemtap/runtime/runtime.h:84,
> from /tmp/stapsXvMb1/stap_7e482897f22605cdad02e8e11f34d749_334.c:41:
> /usr/local/share/systemtap/runtime/transport/utt.c: In function âÂÂutt_dropped_openâÂÂ:
> /usr/local/share/systemtap/runtime/transport/utt.c:199: error: âÂÂstruct inodeâ has no member named âÂÂuâÂÂ
> In file included from /usr/local/share/systemtap/runtime/print.c:17,
> from /usr/local/share/systemtap/runtime/runtime.h:84,
> from /tmp/stapsXvMb1/stap_7e482897f22605cdad02e8e11f34d749_334.c:41:
> /usr/local/share/systemtap/runtime/transport/transport.c: In function âÂÂ_stp_transport_initâÂÂ:
> /usr/local/share/systemtap/runtime/transport/transport.c:214: error: âÂÂstruct task_structâ has no member named âÂÂuidâÂÂ
> /usr/local/share/systemtap/runtime/transport/transport.c:215: error: âÂÂstruct task_structâ has no member named âÂÂgidâÂÂ
> In file included from /tmp/stapsXvMb1/stap_7e482897f22605cdad02e8e11f34d749_334.c:42:
> /usr/local/share/systemtap/runtime/regs.c: In function âÂÂ_stp_ret_addrâÂÂ:
> /usr/local/share/systemtap/runtime/regs.c:49: error: âÂÂstruct pt_regsâ has no member named âÂÂespâÂÂ
> /usr/local/share/systemtap/runtime/regs.c: In function âÂÂ_stp_print_regsâÂÂ:
> /usr/local/share/systemtap/runtime/regs.c:235: error: âÂÂstruct pt_regsâ has no member named âÂÂeipâÂÂ
> /usr/local/share/systemtap/runtime/regs.c:236: error: âÂÂstruct pt_regsâ has no member named âÂÂespâÂÂ
> /usr/local/share/systemtap/runtime/regs.c:238: error: âÂÂstruct pt_regsâ has no member named âÂÂeaxâÂÂ
> /usr/local/share/systemtap/runtime/regs.c:238: error: âÂÂstruct pt_regsâ has no member named âÂÂebxâÂÂ
> /usr/local/share/systemtap/runtime/regs.c:238: error: âÂÂstruct pt_regsâ has no member named âÂÂecxâÂÂ
> /usr/local/share/systemtap/runtime/regs.c:238: error: âÂÂstruct pt_regsâ has no member named âÂÂedxâÂÂ
> /usr/local/share/systemtap/runtime/regs.c:240: error: âÂÂstruct pt_regsâ has no member named âÂÂesiâÂÂ
> /usr/local/share/systemtap/runtime/regs.c:240: error: âÂÂstruct pt_regsâ has no member named âÂÂediâÂÂ
> /usr/local/share/systemtap/runtime/regs.c:240: error: âÂÂstruct pt_regsâ has no member named âÂÂebpâÂÂ
> /usr/local/share/systemtap/runtime/regs.c:242: error: âÂÂstruct pt_regsâ has no member named âÂÂxdsâÂÂ
> /usr/local/share/systemtap/runtime/regs.c:242: error: âÂÂstruct pt_regsâ has no member named âÂÂxesâÂÂ
> /usr/local/share/systemtap/runtime/regs.c: In function âÂÂ_stp_get_spâÂÂ:
> /usr/local/share/systemtap/runtime/regs.c:417: error: âÂÂstruct pt_regsâ has no member named âÂÂespâÂÂ
> /usr/local/share/systemtap/runtime/regs.c:418: error: âÂÂstruct pt_regsâ has no member named âÂÂespâÂÂ
> /usr/local/share/systemtap/runtime/regs.c: In function âÂÂ_stp_get_arg32_by_numberâÂÂ:
> /usr/local/share/systemtap/runtime/regs.c:505: error: âÂÂstruct pt_regsâ has no member named âÂÂeaxâÂÂ
> /usr/local/share/systemtap/runtime/regs.c:506: error: âÂÂstruct pt_regsâ has no member named âÂÂedxâÂÂ
> /usr/local/share/systemtap/runtime/regs.c:507: error: âÂÂstruct pt_regsâ has no member named âÂÂecxâÂÂ
> In file included from /usr/local/share/systemtap/runtime/stack.c:35,
> from /tmp/stapsXvMb1/stap_7e482897f22605cdad02e8e11f34d749_334.c:43:
> /usr/local/share/systemtap/runtime/stack-i386.c: In function âÂÂ__stp_stack_printâÂÂ:
> /usr/local/share/systemtap/runtime/stack-i386.c:33: error: âÂÂstruct pt_regsâ has no member named âÂÂespâÂÂ
> /usr/local/share/systemtap/runtime/stack-i386.c:37: error: âÂÂstruct pt_regsâ has no member named âÂÂebpâÂÂ
> In file included from /tmp/stapsXvMb1/stap_7e482897f22605cdad02e8e11f34d749_334.c:43:
> /usr/local/share/systemtap/runtime/stack.c: In function âÂÂ_stp_stack_printâÂÂ:
> /usr/local/share/systemtap/runtime/stack.c:61: error: âÂÂstruct pt_regsâ has no member named âÂÂeipâÂÂ
> /usr/local/share/systemtap/runtime/stack.c:65: error: âÂÂstruct pt_regsâ has no member named âÂÂeipâÂÂ
> /usr/local/share/systemtap/runtime/stack.c:67: error: âÂÂstruct pt_regsâ has no member named âÂÂeipâÂÂ
> distcc[11858] ERROR: compile /tmp/stapsXvMb1/stap_7e482897f22605cdad02e8e11f34d749_334.c on localhost failed
> make[1]: *** [/tmp/stapsXvMb1/stap_7e482897f22605cdad02e8e11f34d749_334.o] Error 1
> make: *** [_module_/tmp/stapsXvMb1] Error 2
> Pass 4: compiled C into "stap_7e482897f22605cdad02e8e11f34d749_334.ko" in 860usr/790sys/1733real ms.
> Pass 4: compilation failed. Try again with another '--vp 0001' option.
> Running rm -rf /tmp/stapsXvMb1
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Latest systemtap fails when used with latest Linux kernel
2009-01-06 7:46 Latest systemtap fails when used with latest Linux kernel Theodore Ts'o
2009-01-06 8:50 ` Srikar Dronamraju
@ 2009-01-06 17:49 ` Frank Ch. Eigler
2009-01-06 20:45 ` Masami Hiramatsu
2009-01-06 18:39 ` Frank Ch. Eigler
2 siblings, 1 reply; 7+ messages in thread
From: Frank Ch. Eigler @ 2009-01-06 17:49 UTC (permalink / raw)
To: Theodore Ts'o; +Cc: systemtap
"Theodore Ts'o" <tytso@mit.edu> writes:
> Using the latest Systemtap (commit be21f2db) compiling a 2.6.28-git7
> kernel, I get this failure....
> [...]
Something broke our runtime autoconf facility. Investigating.
- FChE
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Latest systemtap fails when used with latest Linux kernel
2009-01-06 7:46 Latest systemtap fails when used with latest Linux kernel Theodore Ts'o
2009-01-06 8:50 ` Srikar Dronamraju
2009-01-06 17:49 ` Frank Ch. Eigler
@ 2009-01-06 18:39 ` Frank Ch. Eigler
2009-01-06 20:30 ` David Smith
2 siblings, 1 reply; 7+ messages in thread
From: Frank Ch. Eigler @ 2009-01-06 18:39 UTC (permalink / raw)
To: Theodore Ts'o; +Cc: systemtap
"Theodore Ts'o" <tytso@mit.edu> writes:
> Using the latest Systemtap (commit be21f2db) compiling a 2.6.28-git7
> kernel, I get this failure....
> [...]
Initial results (using an O=DIR x86_64 build) indicate that the kbuild
machinery was broken with respect to the include2/ symlink directory
in the build tree. It was not updated when commit
bb8985586b7a906e116db835c64773b7a7d51663 moved a bunch of files from
include/asm/x86/ to arch/include/asm/.
- FChE
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Latest systemtap fails when used with latest Linux kernel
2009-01-06 18:39 ` Frank Ch. Eigler
@ 2009-01-06 20:30 ` David Smith
0 siblings, 0 replies; 7+ messages in thread
From: David Smith @ 2009-01-06 20:30 UTC (permalink / raw)
To: Frank Ch. Eigler; +Cc: Theodore Ts'o, systemtap
Frank Ch. Eigler wrote:
> "Theodore Ts'o" <tytso@mit.edu> writes:
>
>> Using the latest Systemtap (commit be21f2db) compiling a 2.6.28-git7
>> kernel, I get this failure....
>> [...]
>
> Initial results (using an O=DIR x86_64 build) indicate that the kbuild
> machinery was broken with respect to the include2/ symlink directory
> in the build tree. It was not updated when commit
> bb8985586b7a906e116db835c64773b7a7d51663 moved a bunch of files from
> include/asm/x86/ to arch/include/asm/.
I tested this on the latest rawhide kernel,
2.6.29-0.12.rc0.git7.fc11.x86_64. I'm seeing 2 classes of problems:
1) autoconf problems - the autoconf tests are failing to find headers
included like "#include <linux/namei.h>". (Here the problem *might* be
that the module sources are compiled with '-Iinclude' specified, but the
autoconf tests don't get compiled that way for some reason.)
To work around this one, you can specify the needed autoconfs on the
stap command line, like this:
# stap -DSTAPCONF_X86_UNIREGS -DSTAPCONF_INODE_PRIVATE
-DSTAPCONF_NAMEIDATA_CLEANUP -v -e 'probe begin { printf("hello\n") }'
(obviously this isn't even a short term solution, but it does kill lots
of compile errors)
2) with the -DSTAPCONF* added as above, then a real kernel change causes
us problems:
In file included from /usr/local/share/systemtap/runtime/print.c:17,
from /usr/local/share/systemtap/runtime/runtime.h:84,
from /tmp/stapnALnka/stap_30776.c:41:
/usr/local/share/systemtap/runtime/transport/transport.c: In function
‘_stp_transport_init’:
/usr/local/share/systemtap/runtime/transport/transport.c:214: error:
‘struct task_struct’ has no member named ‘uid’
/usr/local/share/systemtap/runtime/transport/transport.c:215: error:
‘struct task_struct’ has no member named ‘gid’
Handling this might entail adding another autoconf test looking for the
'cred' struct in task_struct (as mentioned by bug #9699).
--
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Latest systemtap fails when used with latest Linux kernel
2009-01-06 17:49 ` Frank Ch. Eigler
@ 2009-01-06 20:45 ` Masami Hiramatsu
2009-01-06 23:09 ` Masami Hiramatsu
0 siblings, 1 reply; 7+ messages in thread
From: Masami Hiramatsu @ 2009-01-06 20:45 UTC (permalink / raw)
To: Frank Ch. Eigler; +Cc: Theodore Ts'o, systemtap
Hi Frank,
Frank Ch. Eigler wrote:
> "Theodore Ts'o" <tytso@mit.edu> writes:
>
>> Using the latest Systemtap (commit be21f2db) compiling a 2.6.28-git7
>> kernel, I get this failure....
>> [...]
>
> Something broke our runtime autoconf facility. Investigating.
It seems that we need to add $(LINUXINCLUDE) to autoconf's CFLAGS.
(see 2.6.28/Makefile:332-334)
Thanks,
--
Masami Hiramatsu
Software Engineer
Hitachi Computer Products (America) Inc.
Software Solutions Division
e-mail: mhiramat@redhat.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Latest systemtap fails when used with latest Linux kernel
2009-01-06 20:45 ` Masami Hiramatsu
@ 2009-01-06 23:09 ` Masami Hiramatsu
0 siblings, 0 replies; 7+ messages in thread
From: Masami Hiramatsu @ 2009-01-06 23:09 UTC (permalink / raw)
To: Frank Ch. Eigler; +Cc: Theodore Ts'o, systemtap
By the way, I've got below error on the latest -mm kernel(mmotm)
---
In file included from /usr/share/systemtap/runtime/transport/transport.c:22,
from /usr/share/systemtap/runtime/print.c:17,
from /usr/share/systemtap/runtime/runtime.h:84,
from /tmp/stapzZKUDf/stap_218dc83d664bf6a2b8f8f5c280eaff7f_176.c:41:
/usr/share/systemtap/runtime/transport/symbols.c:124:33: error: macro "swap" passed 3 arguments, but takes just 2
/usr/share/systemtap/runtime/transport/symbols.c:130:28: error: macro "swap" passed 3 arguments, but takes just 2
/usr/share/systemtap/runtime/transport/symbols.c:137:33: error: macro "swap" passed 3 arguments, but takes just 2
make[3]: *** [/tmp/stapzZKUDf/stap_218dc83d664bf6a2b8f8f5c280eaff7f_176.o] Error 1
make[2]: *** [_module_/tmp/stapzZKUDf] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2
---
In runtime/transport/symbols.c, a function use a 'swap' function pointer,
however, below patch defined generic 'swap' macro in include/linux/kernel.h.
http://git.zen-sources.org/?p=mmotm.git;a=commit;h=ad1dae50a96703a7443df6335a27ec6112c194c8
So, I think we'd better change the variable name in advance. :-)
Thank you,
--
Masami Hiramatsu
Software Engineer
Hitachi Computer Products (America) Inc.
Software Solutions Division
e-mail: mhiramat@redhat.com
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-01-06 23:09 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-06 7:46 Latest systemtap fails when used with latest Linux kernel Theodore Ts'o
2009-01-06 8:50 ` Srikar Dronamraju
2009-01-06 17:49 ` Frank Ch. Eigler
2009-01-06 20:45 ` Masami Hiramatsu
2009-01-06 23:09 ` Masami Hiramatsu
2009-01-06 18:39 ` Frank Ch. Eigler
2009-01-06 20:30 ` David Smith
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).