Skip to content

kprobes: tracing/probes: Fix and cleanup to use guard

Masami Hiramatsu (Google) linux-trace-kernel lkml 2 versions – In review

Get series with b4
b4 am 173289885627.73724.13632317993038475335.stgit@devnote2

Versions newest first · linked by author and title

  1. v2 Latest6 patches 3 repliesIn review
  2. v16 patches 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6tracing/eprobe: Fix to release eprobe when failed to add dyn_eventkernel/trace/trace_eprobe.c+5 -00 replies
2/6kprobes: Adopt guard() and scoped_guard()kernel/kprobes.c+89 -1160 replies
3/6tracing/kprobe: Adopt guard() and scoped_guard()kernel/trace/trace_kprobe.c+6 -120 replies
4/6tracing/uprobe: Adopt guard() and scoped_guard()kernel/trace/trace_uprobe.c+5 -100 replies
5/6tracing/eprobe: Adopt guard() and scoped_guard()kernel/trace/trace_eprobe.c+17 -190 replies
6/6tracing/dynevent: Adopt guard() and scoped_guard()kernel/trace/trace_dynevent.c+16 -193 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/6] kprobes: tracing/probes: Fix and cleanup to use guard

Hi,

This is the v2 of the series to fix eprobes and cleanup kprobes and probe events in ftrace to use guard() and scoped_guard() instead of pairs of mutex locks.
In this version I fixed mixing of gurad and goto in the same function by using scoped_guard.

Some locks are still not using guard(). We need some more work to complete.

Thanks,

---

Masami Hiramatsu (Google) (6):
tracing/eprobe: Fix to release eprobe when failed to add dyn_event
kprobes: Adopt guard() and scoped_guard() tracing/kprobe: Adopt guard() and scoped_guard() tracing/uprobe: Adopt guard() and scoped_guard() tracing/eprobe: Adopt guard() and scoped_guard() tracing/dynevent: Adopt guard() and scoped_guard()

 kernel/kprobes.c              |  205 ++++++++++++++++++-----------------------
 kernel/trace/trace_dynevent.c |   35 +++----
 kernel/trace/trace_eprobe.c   |   31 +++---
 kernel/trace/trace_kprobe.c   |   18 +---
 kernel/trace/trace_uprobe.c   |   15 +--
 5 files changed, 133 insertions(+), 171 deletions(-)

--
Masami Hiramatsu (Google) <[email protected]>