This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/5549] To make systemtap compatible with the x86/x86_64 pt_regs unification patch.
- From: "mhiramat at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 7 Jan 2008 21:10:31 -0000
- Subject: [Bug runtime/5549] To make systemtap compatible with the x86/x86_64 pt_regs unification patch.
- References: <20080107132502.5549.srinivasa@in.ibm.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From mhiramat at redhat dot com 2008-01-07 21:10 -------
(In reply to comment #1)
> Created an attachment (id=2176)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=2176&action=view)
> patch to solve the problem
Good work!
Could you use autoconf to check that, because this was included in -rc/-mm trees?
Here is an example:
---(runtime/autoconf-x86-uniregs.c)
#include <asm/ptrace.h>
struct pt_regs regs = {.ax = 0x0};
---
And add below line to compile_pass().(you can find similar autoconf-lines)
---
o << module_cflags << " += $(call stap_check_build,
$(SYSTEMTAP_RUNTIME)/autoconf-x86-uniregs.c, -DSTAPCONF_X86_UNIREGS,)" << endl;
---
Then, you can use #ifdef STAPCONF_X86_UNIREGS instead of KERNEL_VERSION in
runtime code.
Thank you,
-masami
--
http://sourceware.org/bugzilla/show_bug.cgi?id=5549
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.