Re: ubuntu 11.10, systemtap and building my own kernel
On Tue, 10 Apr 2012, Frank Ch. Eigler wrote:
rpjday wrote:
[...] $ stap -e 'probe kernel.function("sys_open") {log("hello world") exit()}' and got: ===== start ===== [...] cc1: all warnings being treated as errors make[1]: *** [/tmp/stapadEYdA/stap_59bddd394f89d5f186da7e250db36434_876.o] Error 1 make: *** [_module_/tmp/stapadEYdA] Error 2 Pass 4: compilation failed. Try again with another '--vp 0001' option.
Please try systemtap 1.7, or build one out of <git://sourceware.org/git/systemtap.git>. Newer kernels sometimes break systemtap assumptions; these are fixed pretty quickly in the source tree, and get rolled into later releases.
Please report any further problems at <systemtap@sourceware.org>, including /usr/bin/stap-report output, if able.
ok, but i'm curious ... i took a quick look at earlier kernels and i don't see where "struct hlist_head" *ever* had a "next" member field that is required by this version of systemtap (1.4). can you clarify which kernel version(s) would have worked with this version of systemtap? thanks. rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ========================================================================
Hi - On Tue, Apr 10, 2012 at 02:23:43PM -0400, Robert P. J. Day wrote:
[...] ok, but i'm curious ... i took a quick look at earlier kernels and i don't see where "struct hlist_head" *ever* had a "next" member field that is required by this version of systemtap (1.4).
I believe this was related to a viro's linux commit 9591718a5a.
can you clarify which kernel version(s) would have worked with this version of systemtap? thanks.
According to http://sourceware.org/ml/systemtap/2011-q1/msg00036.html, it was run with 2.6.9 ... 2.6.37. - FChE
participants (2)
-
Frank Ch. Eigler -
Robert P. J. Day