summaryrefslogtreecommitdiffstats
path: root/arch/tile/include/uapi
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2012-12-13 11:34:45 -0500
committerChris Metcalf <cmetcalf@tilera.com>2012-12-14 12:56:54 -0500
commit395e095ed92b1ccfe74c90fee4cc637cff468ea7 (patch)
tree0c93516feaaf0c4383c1d7b5963fe5fddb7231a6 /arch/tile/include/uapi
parentcb67e161bc947ab467657dda38168c2b2266f5bc (diff)
downloadop-kernel-dev-395e095ed92b1ccfe74c90fee4cc637cff468ea7.zip
op-kernel-dev-395e095ed92b1ccfe74c90fee4cc637cff468ea7.tar.gz
arch/tile: clean up tile-specific PTRACE_SETOPTIONS
Use the newer idioms for setting PTRACE_O_xxx and PT_TRACE_xxx flags. Only set/clear tile-specific flags if the generic routine returns success, since otherwise we want to avoid setting any flags at all. Atomically update the ptrace flags with the new values. Eliminate the PT_TRACE_MASK_TILE bitmask and just shift PTRACE_O_MASK_TILE. Add a BUILD_BUG_ON to avoid overlapping with generic bits. Acked-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/include/uapi')
-rw-r--r--arch/tile/include/uapi/asm/ptrace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/tile/include/uapi/asm/ptrace.h b/arch/tile/include/uapi/asm/ptrace.h
index 0d22088..7757e19 100644
--- a/arch/tile/include/uapi/asm/ptrace.h
+++ b/arch/tile/include/uapi/asm/ptrace.h
@@ -81,8 +81,8 @@ struct pt_regs {
#define PTRACE_SETFPREGS 15
/* Support TILE-specific ptrace options, with events starting at 16. */
-#define PTRACE_O_TRACEMIGRATE 0x00010000
#define PTRACE_EVENT_MIGRATE 16
+#define PTRACE_O_TRACEMIGRATE (1 << PTRACE_EVENT_MIGRATE)
/*
* Flag bits in pt_regs.flags that are part of the ptrace API.
OpenPOWER on IntegriCloud