s390/kprobes: add support for compare and branch instructions
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 1 Aug 2013 08:16:27 +0000 (10:16 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 22 Aug 2013 10:20:12 +0000 (12:20 +0200)
commit6b169ac9b4342ff3a1499bdeb7596aa4f1bc401b
tree3697bebddba3158aefd5481e7009ecd5ae5a1291
parentbee5c2863ef807fa50bbdf8b2bae887c54a97083
s390/kprobes: add support for compare and branch instructions

The compare and branch instructions (not relative) all need special
handling when kprobed:
- if a branch was taken, the instruction pointer should be left alone
- if a branch was not taken, the instruction pointer must be adjusted

The compare and branch instructions family was introduced with the general
instruction extension facility (z10).

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/kprobes.c