]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kprobes: Use patch_instruction()
authorJordan Niethe <jniethe5@gmail.com>
Wed, 6 May 2020 03:40:35 +0000 (13:40 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 18 May 2020 14:10:37 +0000 (00:10 +1000)
commit1b75754cdb8c71000174246e4d83fefb03bac1a8
tree0fa038b175bff945859bbe8700bb6d5ef8df13a5
parent64b591a84587f80577bf5b9c1b33b8cf2ceb6861
powerpc/kprobes: Use patch_instruction()

Instead of using memcpy() and flush_icache_range() use
patch_instruction() which not only accomplishes both of these steps but
will also make it easier to add support for prefixed instructions.

Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Alistair Popple <alistair@popple.id.au>
Link: https://lore.kernel.org/r/20200506034050.24806-16-jniethe5@gmail.com
arch/powerpc/kernel/kprobes.c