Skip to content

uprobes: two common case speed ups

Andrii Nakryiko bpf linux-trace-kernel lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 5 repliesIn review
  2. v13 patches 8 repliesSuperseded

Changes in v2 from the cover letter

- rebased onto trace/core branch of tracing tree, hopefully I guessed right;
- simplified user_cpu_buffer usage further (Oleg Nesterov);
- simplified patch #3, just moved speculative check outside of lock (Oleg);
- added Reviewed-by from Jiri Olsa.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3uprobes: encapsulate preparation of uprobe args bufferkernel/trace/trace_uprobe.c+41 -370 replies
2/3uprobes: prepare uprobe args buffer lazilykernel/trace/trace_uprobe.c+28 -210 replies
3/3uprobes: add speculative lockless system-wide uprobe filter checkkernel/trace/trace_uprobe.c+7 -30 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJiri OlsaMasami Hiramatsu (Google)Oleg Nesterov
SeriesA-b R-b
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/3] uprobes: two common case speed ups

This patch set implements two speed ups for uprobe/uretprobe runtime execution path for some common scenarios: BPF-only uprobes (patches #1 and #2) and system-wide (non-PID-specific) uprobes (patch #3). Please see individual patches for details.

v1->v2:
- rebased onto trace/core branch of tracing tree, hopefully I guessed right;
- simplified user_cpu_buffer usage further (Oleg Nesterov);
- simplified patch #3, just moved speculative check outside of lock (Oleg);
- added Reviewed-by from Jiri Olsa.

Andrii Nakryiko (3):
uprobes: encapsulate preparation of uprobe args buffer
uprobes: prepare uprobe args buffer lazily
uprobes: add speculative lockless system-wide uprobe filter check

 kernel/trace/trace_uprobe.c | 103 +++++++++++++++++++++---------------
 1 file changed, 59 insertions(+), 44 deletions(-)
Signature · 1 line
2.43.0