]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit648e02b25b68e3838fafba9af18291ab098b8949
tree3697bebddba3158aefd5481e7009ecd5ae5a1291
parent75d2393e479ee7547e2c44980684aef6cf8b2cce
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