mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 0/4] Add uprobes support for LoongArch
@ 2023-04-12 10:04 Tiezhu Yang
  2023-04-12 10:04 ` [PATCH v1 1/4] LoongArch: Move three functions from kprobes.c to inst.h Tiezhu Yang
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Tiezhu Yang @ 2023-04-12 10:04 UTC (permalink / raw)
  To: Huacai Chen, WANG Xuerui; +Cc: loongarch, linux-kernel, loongson-kernel

v1:
  -- Split the RFC patch #2 into two patches
  -- Use larch_insn_gen_break() to generate break insns
     for kprobes and uprobes
  -- Pass around instruction word instead of union for
     insns_not_supported(), insns_need_simulation() and
     arch_simulate_insn() to avoid type conversion for callers
  -- Add a simple test case for uprobes in the commit message

Tiezhu Yang (4):
  LoongArch: Move three functions from kprobes.c to inst.h
  LoongArch: Add larch_insn_gen_break() to generate break insns
  LoongArch: Use larch_insn_gen_break() for kprobes
  LoongArch: Add uprobes support

 arch/loongarch/Kconfig               |   3 +
 arch/loongarch/include/asm/inst.h    |  63 ++++++++++++++++
 arch/loongarch/include/asm/kprobes.h |   2 +-
 arch/loongarch/include/asm/uprobes.h |  36 ++++++++++
 arch/loongarch/kernel/Makefile       |   1 +
 arch/loongarch/kernel/inst.c         |   9 +++
 arch/loongarch/kernel/kprobes.c      |  67 ++---------------
 arch/loongarch/kernel/traps.c        |   9 ++-
 arch/loongarch/kernel/uprobes.c      | 135 +++++++++++++++++++++++++++++++++++
 9 files changed, 259 insertions(+), 66 deletions(-)
 create mode 100644 arch/loongarch/include/asm/uprobes.h
 create mode 100644 arch/loongarch/kernel/uprobes.c

-- 
2.1.0


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

end of thread, other threads:[~2023-04-13  1:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-12 10:04 [PATCH v1 0/4] Add uprobes support for LoongArch Tiezhu Yang
2023-04-12 10:04 ` [PATCH v1 1/4] LoongArch: Move three functions from kprobes.c to inst.h Tiezhu Yang
2023-04-12 10:39   ` Xi Ruoyao
2023-04-13  1:55     ` Tiezhu Yang
2023-04-12 10:04 ` [PATCH v1 2/4] LoongArch: Add larch_insn_gen_break() to generate break insns Tiezhu Yang
2023-04-12 10:05 ` [PATCH v1 3/4] LoongArch: Use larch_insn_gen_break() for kprobes Tiezhu Yang
2023-04-12 11:08   ` Xi Ruoyao
2023-04-13  1:58     ` Tiezhu Yang
2023-04-12 10:05 ` [PATCH v1 4/4] LoongArch: Add uprobes support Tiezhu Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®