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]

[Bug kprobes/2387] system crash on ppc64/2.6.15.4


------- Additional Comments From guanglei at cn dot ibm dot com  2006-03-02 05:36 -------
> I don't know if this is or isn't the cause of the problem, since I'm not seeing
> it on my x86 test machine, but I do see that the wrong relayfs_fs.h header file
> (the one in runtime/relayfs/linux/ rather than the one in the installed kernel
> sources) is being used to generate the probe module, when running a 2.6.15
> kernel without the RELAYFS_VERSION_GE_4 define in relayfs.h.
> 
> Can you go ahead and try adding that define and see if it helps? i.e. add
> #define RELAYFS_VERSION_GE_4 to src/runtime/transport/relayfs.h and then do a
> 'make install' to get it installed.  Also make sure you have relayfs configured
> into your kernel.
> 
> If that's the problem, then this bug could probably be closed and would be fixed
> by 2406, which deals with autodetecting the proper relayfs version, including
> this one.

I tried, and it worked. Thanks. It seems not crash any more.
But there is some errors(in fact, warnings) when stap is compiling the module, I
bypassed it by delete the -Werror in buildrun.cxx:

Running grep " [tT] " /proc/kallsyms | sort -k 1,8 -s -o
/tmp/stap2iLdUc/symbols.sorted
Pass 3: translated to C into "/tmp/stap2iLdUc/stap_6318.c" in
280usr/1000sys/1294real ms.
Running make -C "/lib/modules/2.6.9-30.EL/build" M="/tmp/stap2iLdUc" modules V=1
make: Entering directory `/usr/src/kernels/2.6.9-30.EL-ppc64'
mkdir -p /tmp/stap2iLdUc/.tmp_versions
make -f scripts/Makefile.build obj=/tmp/stap2iLdUc
  gcc -m64 -Wp,-MD,/tmp/stap2iLdUc/.stap_6318.o.d -nostdinc -iwithprefix include
-D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -fno-common -Os -g -Wdeclaration-after-statement
-msoft-float -pipe -mminimal-toc -mtraceback=none -mcall-aixdesc               
    -mtune=power4 -fno-unit-at-a-time -Wno-unused -Werror -I
"/usr/local/share/systemtap/runtime" -I
"/usr/local/share/systemtap/runtime/relayfs"   -DMODULE
-DKBUILD_BASENAME=stap_6318 -DKBUILD_MODNAME=stap_6318 -c -o
/tmp/stap2iLdUc/.tmp_stap_6318.o /tmp/stap2iLdUc/stap_6318.c
In file included from /usr/local/share/systemtap/runtime/transport/transport.c:20,
                 from /usr/local/share/systemtap/runtime/io.c:14,
                 from /usr/local/share/systemtap/runtime/print.c:16,
                 from /usr/local/share/systemtap/runtime/runtime.h:61,
                 from /tmp/stap2iLdUc/stap_6318.c:30:
/usr/local/share/systemtap/runtime/transport/relayfs.c: In function
`_stp_subbuf_start':
/usr/local/share/systemtap/runtime/transport/relayfs.c:33: warning: implicit
declaration of function `relay_buf_full'
/usr/local/share/systemtap/runtime/transport/relayfs.c:39: warning: implicit
declaration of function `subbuf_start_reserve'
/usr/local/share/systemtap/runtime/transport/relayfs.c: At top level:
/usr/local/share/systemtap/runtime/transport/relayfs.c:77: warning:
initialization from incompatible pointer type
/usr/local/share/systemtap/runtime/transport/relayfs.c: In function
`_stp_relayfs_open':
/usr/local/share/systemtap/runtime/transport/relayfs.c:129: warning: passing arg
5 of `relay_open' makes integer from pointer without a cast
/usr/local/share/systemtap/runtime/transport/relayfs.c:129: error: too few
arguments to function `relay_open'
In file included from /usr/local/share/systemtap/runtime/transport/transport.c:45,
                 from /usr/local/share/systemtap/runtime/io.c:14,
                 from /usr/local/share/systemtap/runtime/print.c:16,
                 from /usr/local/share/systemtap/runtime/runtime.h:61,
                 from /tmp/stap2iLdUc/stap_6318.c:30:
/usr/local/share/systemtap/runtime/transport/procfs.c: In function `_stp_proc_read':
/usr/local/share/systemtap/runtime/transport/procfs.c:35: error: incompatible
types in assignment
/usr/local/share/systemtap/runtime/transport/procfs.c:36: error: incompatible
types in assignment
In file included from /usr/local/share/systemtap/runtime/io.c:14,
                 from /usr/local/share/systemtap/runtime/print.c:16,
                 from /usr/local/share/systemtap/runtime/runtime.h:61,
                 from /tmp/stap2iLdUc/stap_6318.c:30:
/usr/local/share/systemtap/runtime/transport/transport.c: In function
`_stp_handle_buf_info':
/usr/local/share/systemtap/runtime/transport/transport.c:86: error: incompatible
types in assignment
/usr/local/share/systemtap/runtime/transport/transport.c:87: error: incompatible
types in assignment
make[1]: *** [/tmp/stap2iLdUc/stap_6318.o] Error 1
make: *** [_module_/tmp/stap2iLdUc] Error 2
make: Leaving directory `/usr/src/kernels/2.6.9-30.EL-ppc64'
Pass 4: compiled C into "stap_6318.ko" in 2820usr/220sys/2893real ms.
Pass 4: compilation failed.  Try again with more '-v' (verbose) options.
Running rm -rf /tmp/stap2iLdUc

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2387

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


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