[PATCH] TASK_PTRACE in arch/alpha/kernel/entry.S

From: Pat O'Rourke (orourke@mclinux.com)
Date: Mon Jul 24 2000 - 08:05:10 EST


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
orourke@missioncriticallinux.com

--- 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):



This archive was generated by hypermail 2b29 : Mon Jul 31 2000 - 21:00:38 EST