summaryrefslogtreecommitdiff
path: root/arch/s390/include/uapi/asm/ptrace.h
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2014-03-14 15:01:08 +0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2014-03-14 15:59:38 +0400
commit818a330c4e1be9c39fa7ca9221e044907d92b4bb (patch)
tree1341793bde170543839a96a71fd72350c8f04c1d /arch/s390/include/uapi/asm/ptrace.h
parent443fc8a3e01cef95f2c7c26605457d49e63da6b1 (diff)
downloadlinux-818a330c4e1be9c39fa7ca9221e044907d92b4bb.tar.xz
s390/ptrace: add support for PTRACE_SINGLEBLOCK
The PTRACE_SINGLEBLOCK option is used to get control whenever the inferior has executed a successful branch. The PER option to implement block stepping is successful-branching event, bit 32 in the PER-event mask. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/uapi/asm/ptrace.h')
-rw-r--r--arch/s390/include/uapi/asm/ptrace.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/s390/include/uapi/asm/ptrace.h b/arch/s390/include/uapi/asm/ptrace.h
index 7e0b498a2c2b..a150f4fabe43 100644
--- a/arch/s390/include/uapi/asm/ptrace.h
+++ b/arch/s390/include/uapi/asm/ptrace.h
@@ -403,6 +403,12 @@ typedef struct
#define PTRACE_TE_ABORT_RAND 0x5011
/*
+ * The numbers chosen here are somewhat arbitrary but absolutely MUST
+ * not overlap with any of the number assigned in <linux/ptrace.h>.
+ */
+#define PTRACE_SINGLEBLOCK 12 /* resume execution until next branch */
+
+/*
* PT_PROT definition is loosely based on hppa bsd definition in
* gdb/hppab-nat.c
*/