linux-csky.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V3 0/3] kprobe: Optimize the performance of patching ss
@ 2022-09-23  8:46 Liao Chang
  2022-09-23  8:46 ` [PATCH 1/3] riscv/kprobe: Optimize the performance of patching single-step slot Liao Chang
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Liao Chang @ 2022-09-23  8:46 UTC (permalink / raw)
  To: catalin.marinas, will, guoren, paul.walmsley, palmer, aou,
	mhiramat, rostedt, mark.rutland, maz, liaochang1,
	alexandru.elisei
  Cc: linux-arm-kernel, linux-kernel, linux-csky, linux-riscv

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.

v3:
1. Drop duplicated I-Cache maintenance for arm64.
2. Add Acked-by from Masami Hiramatsu.

v2:
Backport riscv patch to cksy and arm64.

Liao Chang (3):
  riscv/kprobe: Optimize the performance of patching single-step slot
  csky/kprobe: Optimize the performance of patching single-step slot
  arm64/kprobe: Optimize the performance of patching single-step slot

 arch/arm64/kernel/probes/kprobes.c | 7 ++-----
 arch/csky/kernel/probes/kprobes.c  | 6 +++++-
 arch/riscv/kernel/probes/kprobes.c | 8 +++++---
 3 files changed, 12 insertions(+), 9 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 13+ messages in thread
* [PATCH V4 0/3] kprobe: Optimize the performance of patching ss
@ 2022-09-27  2:24 Liao Chang
  2022-09-27  2:24 ` [PATCH 3/3] arm64/kprobe: Optimize the performance of patching single-step slot Liao Chang
  0 siblings, 1 reply; 13+ messages in thread
From: Liao Chang @ 2022-09-27  2:24 UTC (permalink / raw)
  To: catalin.marinas, will, guoren, paul.walmsley, palmer, aou,
	mhiramat, rostedt, maz, alexandru.elisei, liaochang1
  Cc: linux-arm-kernel, linux-kernel, linux-csky, linux-riscv

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.

v4:
1. Add Acked-by from Will Deacon
2. Mark Rutland provides some subtleties on arm64 micro-architecture
   that needs to follow.

v3:
1. Drop duplicated I-Cache maintenance for arm64.
2. Add Acked-by from Masami Hiramatsu.

v2:
Backport riscv patch to cksy and arm64.


Liao Chang (3):
  riscv/kprobe: Optimize the performance of patching single-step slot
  csky/kprobe: Optimize the performance of patching single-step slot
  arm64/kprobe: Optimize the performance of patching single-step slot

 arch/arm64/kernel/probes/kprobes.c | 27 +++++++++++++++++++++------
 arch/csky/kernel/probes/kprobes.c  |  6 +++++-
 arch/riscv/kernel/probes/kprobes.c |  8 +++++---
 3 files changed, 31 insertions(+), 10 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-09-30  8:15 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-23  8:46 [PATCH V3 0/3] kprobe: Optimize the performance of patching ss Liao Chang
2022-09-23  8:46 ` [PATCH 1/3] riscv/kprobe: Optimize the performance of patching single-step slot Liao Chang
2022-09-23  8:46 ` [PATCH 2/3] csky/kprobe: " Liao Chang
2022-09-23  8:46 ` [PATCH 3/3] arm64/kprobe: " Liao Chang
2022-09-23 12:35   ` Will Deacon
2022-09-23 12:39   ` Mark Rutland
2022-09-24  1:52     ` liaochang (A)
2022-09-25  1:21       ` Masami Hiramatsu
2022-09-27  1:37         ` liaochang (A)
2022-09-27  2:24 [PATCH V4 0/3] kprobe: Optimize the performance of patching ss Liao Chang
2022-09-27  2:24 ` [PATCH 3/3] arm64/kprobe: Optimize the performance of patching single-step slot Liao Chang
2022-09-29 16:50   ` Catalin Marinas
2022-09-30  1:02     ` liaochang (A)
2022-09-30  8:15       ` Catalin Marinas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).