Thread (8 messages) 8 messages, 2 authors, 2022-09-30

Re: [PATCH 3/3] arm64/kprobe: Optimize the performance of patching single-step slot

From: Catalin Marinas <catalin.marinas@arm.com>
Date: 2022-09-29 16:50:57
Also in: linux-riscv, lkml

On Tue, Sep 27, 2022 at 10:24:35AM +0800, Liao Chang wrote:
Single-step slot would not be used until kprobe is enabled, that means
no race condition occurs on it under SMP, hence it is safe to pacth ss
slot without stopping machine.

Since I and D caches are coherent within single-step slot from
aarch64_insn_patch_text_nosync(), hence no need to do it again via
flush_icache_range().

Acked-by: Will Deacon <will@kernel.org>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Liao Chang <redacted>
---
 arch/arm64/kernel/probes/kprobes.c | 27 +++++++++++++++++++++------
 1 file changed, 21 insertions(+), 6 deletions(-)
What's your expectation with this series, should the arch maintainers
just pick the individual patches?

-- 
Catalin

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help