]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kprobes: Clean up jprobe detection in livepatch handler
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Fri, 22 Sep 2017 09:10:45 +0000 (14:40 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 4 Oct 2017 12:42:17 +0000 (23:42 +1100)
commit89a5528f835dbb47ce94358da5c344b204952346
treea54610879baee8bc1b545f6e958e97aae080eec4
parent9726bf0b633a39cdcb5a1ed4c31d53074c0d1b28
powerpc/kprobes: Clean up jprobe detection in livepatch handler

In commit 32f73e5bf9ce8 ("powerpc/kprobes: Skip livepatch_handler() for
jprobes"), we added a helper is_current_kprobe_addr() to help detect if
the modified regs->nip was due to a jprobe or livepatch. Masami felt
that the function name was not quite clear. To that end, this patch
renames is_current_kprobe_addr() to __is_active_jprobe() and adds a
comment to (hopefully) better clarify the purpose of this helper. The
helper has also now been moved to kprobes-ftrace.c so that it is only
available for KPROBES_ON_FTRACE.

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/kprobes.h
arch/powerpc/kernel/kprobes-ftrace.c
arch/powerpc/kernel/kprobes.c
arch/powerpc/kernel/trace/ftrace_64_mprofile.S