History

ptrace/um: Replace PT_DTRACE with TIF_SINGLESTEP

User mode linux is the last user of the PT_DTRACE flag. Using the flag to indicate single stepping is a little confusing and worse changing tsk->ptrace without locking could potentionally cause problems. So use a thread info flag with a better name instead of flag in tsk->ptrace. Remove the definition PT_DTRACE as uml is the last user.

Eric W. Biederman committed 4 years ago

Commit c200e4b1 parent e71ba126 files · +10 −9Browse files

Showing the changes to include (1 of 6 files). Show all

Unified · Split

include/linux/ptrace.h+0−1
@@ -30,7 +30,6 @@ extern int ptrace_access_vm(struct task_struct *tsk, unsigned long addr, · 29 unmodified lines
3030
3131 #define PT_SEIZED 0x00010000 /* SEIZE used, enable new behavior */
3232 #define PT_PTRACED 0x00000001
33−#define PT_DTRACE 0x00000002 /* delayed trace (used on m68k, i386) */
3433
3534 #define PT_OPT_FLAG_SHIFT 3
3635 /* PT_TRACE_* event enable flags */