public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -tip 0/6] kprobes: treewide: Clean up kprobe code
@ 2021-07-10 14:55 Masami Hiramatsu
  2021-07-10 14:55 ` [PATCH -tip 1/6] kprobes: treewide: Cleanup the error messages for kprobes Masami Hiramatsu
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Masami Hiramatsu @ 2021-07-10 14:55 UTC (permalink / raw)
  To: X86 ML, Ingo Molnar
  Cc: Steven Rostedt, Josh Poimboeuf, Masami Hiramatsu, Daniel Xu,
	linux-kernel, bpf, kuba, mingo, ast, Thomas Gleixner,
	Borislav Petkov, Peter Zijlstra, kernel-team, yhs, linux-ia64,
	Abhishek Sagar, Andrii Nakryiko

Hi Ingo,

Here is a series of patches to cleanup the kprobes code. I tried to fix
error message issues, comments, checkpatch.pl issues and so on. Some
of those are what you suggested and pointed in the x86 stacktrace series.

 https://lore.kernel.org/bpf/YOK39GTuueIDeaJL@gmail.com/

I decided to split this seires from the x86 stacktrace fix series because
there still be some on going discussions on that thread. The stacktrace
fix series will be rebased on this series (and I've almost done, except
for some discussion items).

Since this is a cleanup series, this does not change any functionality
(of course some error messages, warnings, lock assertions are chaneged)
but the coding styles are improved. I will continue this cleanup activities
for each architecture port, and rethink the internal coding design and
interfaces too.

Thank you,

---

Masami Hiramatsu (6):
      kprobes: treewide: Cleanup the error messages for kprobes
      kprobes: Fix coding style issues
      kprobes: Use IS_ENABLED() instead of kprobes_built_in()
      kprobes: Add assertions for required lock
      kprobes: treewide: Use 'kprobe_opcode_t *' for the code address in get_optimized_kprobe()
      kprobes: Use bool type for functions which returns boolean value


 arch/arm/probes/kprobes/core.c     |    4 
 arch/arm/probes/kprobes/opt-arm.c  |    7 -
 arch/arm64/kernel/probes/kprobes.c |    5 -
 arch/csky/kernel/probes/kprobes.c  |   10 +
 arch/mips/kernel/kprobes.c         |   11 +
 arch/powerpc/kernel/optprobes.c    |    6 -
 arch/riscv/kernel/probes/kprobes.c |   11 +
 arch/s390/kernel/kprobes.c         |    4 
 arch/x86/kernel/kprobes/opt.c      |    6 -
 include/linux/kprobes.h            |   64 +++----
 kernel/kprobes.c                   |  315 +++++++++++++++++++-----------------
 11 files changed, 226 insertions(+), 217 deletions(-)

--
Masami Hiramatsu (Linaro) <mhiramat@kernel.org>

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

end of thread, other threads:[~2021-07-11  1:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-10 14:55 [PATCH -tip 0/6] kprobes: treewide: Clean up kprobe code Masami Hiramatsu
2021-07-10 14:55 ` [PATCH -tip 1/6] kprobes: treewide: Cleanup the error messages for kprobes Masami Hiramatsu
2021-07-10 14:55 ` [PATCH -tip 2/6] kprobes: Fix coding style issues Masami Hiramatsu
2021-07-10 14:55 ` [PATCH -tip 3/6] kprobes: Use IS_ENABLED() instead of kprobes_built_in() Masami Hiramatsu
2021-07-10 14:55 ` [PATCH -tip 4/6] kprobes: Add assertions for required lock Masami Hiramatsu
2021-07-10 14:56 ` [PATCH -tip 5/6] kprobes: treewide: Use 'kprobe_opcode_t *' for the code address in get_optimized_kprobe() Masami Hiramatsu
2021-07-10 14:56 ` [PATCH -tip 6/6] kprobes: Use bool type for functions which returns boolean value Masami Hiramatsu
2021-07-10 16:27   ` Joe Perches
2021-07-11  1:26     ` Masami Hiramatsu

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