* [PATCH] renumber PTRACE_EVENT_STOP so that future PTRACE_O_TRACEfoo
@ 2012-01-04 15:37 Denys Vlasenko
0 siblings, 0 replies; only message in thread
From: Denys Vlasenko @ 2012-01-04 15:37 UTC (permalink / raw)
To: Oleg Nesterov, Tejun Heo; +Cc: linux-kernel, Denys Vlasenko
PTRACE_EVENT_foo and PTRACE_O_TRACEfoo used to match.
New PTRACE_EVENT_STOP is the first event which has no
corresponding PTRACE_O_TRACE option. If we will ever
want to add another such option, its PTRACE_EVENT's
value will collide with PTRACE_EVENT_STOP's value.
This patch changes PTRACE_EVENT_STOP value to prevent this.
While at it, added comment - the one above,
"Wait extended result codes for the above trace options",
is not true for PTRACE_EVENT_STOP.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
--
vda
diff --git a/include/linux/ptrace.h b/include/linux/ptrace.h
index 800f113..1729c00 100644
--- a/include/linux/ptrace.h
+++ b/include/linux/ptrace.h
@@ -72,7 +72,8 @@
#define PTRACE_EVENT_EXEC 4
#define PTRACE_EVENT_VFORK_DONE 5
#define PTRACE_EVENT_EXIT 6
-#define PTRACE_EVENT_STOP 7
+/* Extended result codes which aren't enabled by options. */
+#define PTRACE_EVENT_STOP 128
#include <asm/ptrace.h>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-01-04 15:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-04 15:37 [PATCH] renumber PTRACE_EVENT_STOP so that future PTRACE_O_TRACEfoo Denys Vlasenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox