A colleague of mine (Dave Anderson) noticed that 'strace' was appearing
in the stack traces of processes which had done a system call on alpha
platforms.  After some investigation he noticed that alpha's entry.S has
the offset of the task_struct's ptrace field as 104, or right after the
'processor' field.  This appears incorrect because the 'ptrace' field is
actually after 'need_resched'.  This patch will adjust the definition of
TASK_PTRACE accordingly.

Pat

-- 
Patrick O'Rourke
[EMAIL PROTECTED]

--- linux-2.4.0-test5-pre3/arch/alpha/kernel/entry.S    Mon Jun 19 20:59:32 
2000
+++ orourke/linux-2.4.0-test5-pre3/arch/alpha/kernel/entry.S    Fri Jul 21 
15:12:27 2000
@@ -33,8 +33,8 @@
 #define TASK_ADDR_LIMIT                24
 #define TASK_EXEC_DOMAIN       32
 #define TASK_NEED_RESCHED      40
+#define TASK_PTRACE            48
 #define TASK_PROCESSOR         100
-#define TASK_PTRACE            104
 
 /*
  * task flags (must match include/linux/sched.h):



Reply via email to