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 runtime/5549] To make systemtap compatible with the x86/x86_64 pt_regs unification patch.


------- 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.


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