Dave, I'm afraid I can confuse you again.
So, as Tony pointed out, both utrace-3.0 and utrace-3.1 need this fix, to fix the build on !x86 platform.
This is for utrace-3.0, I'll send the same patch in reply to "[PATCH 0/31] utrace for 3.1 kernel".
Or should I do something else?
On 08/09, Oleg Nesterov wrote:
From: Tony Breeds tony@bakeyournoodle.com
TIF_SYSCALL_EMU is x86 only, add ifdef into ptrace_report_syscall().
Signed-off-by: Oleg Nesterov oleg@redhat.com
include/linux/tracehook.h | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/include/linux/tracehook.h b/include/linux/tracehook.h index ac833de..d5baf86 100644 --- a/include/linux/tracehook.h +++ b/include/linux/tracehook.h @@ -76,8 +76,12 @@ static inline void ptrace_report_syscall(struct pt_regs *regs) { int ptrace = task_ptrace(current);
- if (!(ptrace & PT_SYSCALL_TRACE) && !test_thread_flag(TIF_SYSCALL_EMU))
return;
- if (!(ptrace & PT_SYSCALL_TRACE)) {
+#ifdef TIF_SYSCALL_EMU
if (!test_thread_flag(TIF_SYSCALL_EMU))
+#endif
return;
}
ptrace_notify(SIGTRAP | ((ptrace & PT_TRACESYSGOOD) ? 0x80 : 0));
-- 1.5.5.1