Description of problem: It seems that Systemtap is currently disabled on RHEL-4 Xen. We at least need to turn on CONFIG_KPROBES, and possibly some other options, to get this working.
An example program that currently fails: probe begin { log("Hello World"); exit(); } Failure messages: In file included from /tmp/stapdAF1BP/stap_885c7cb3746af32673d0ab75f63f8db7_313.c:36: /usr/share/systemtap/runtime/stack.c:73: warning: "struct kretprobe_instance" declared inside parameter list /usr/share/systemtap/runtime/stack.c:73: warning: its scope is only this definition or declaration, which is probably not what you want /usr/share/systemtap/runtime/stack.c: In function `_stp_stack_sprint': /usr/share/systemtap/runtime/stack.c:79: error: dereferencing pointer to incomplete type /usr/share/systemtap/runtime/stack.c:81: error: dereferencing pointer to incomplete type
FWIW, I've built a i686 tree locally with CONFIG_KPROBES turned on, and it seems to at least have built and executed the simple "Hello World" module. So it may be as simple as just turning that configuration option on for both i386 and x86_64. Chris Lalancette
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
committed in stream U6 build 55.16. A test kernel with this patch is available from http://people.redhat.com/~jbaron/rhel4/
change QA contact
added to RHEL4.6 release notes under "Kernel-Related Updates": <quote> CONFIG_KPROBES is now enabled to provide support for Systemtap </quote> please advise if any revisions are necessary. thanks!
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2007-0791.html