Skip to content

Improve performance and scalability of uretprobes

Andrii Nakryiko bpf linux-trace-kernel lkml 1 version Applied

Status from this message: The following commit has been merged into the perf/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4uprobes: simplify session consumer trackinginclude/linux/uprobes.h kernel/events/uprobes.c+45 -372 replies
2/4uprobes: decouple return_instance list traversal and freeingkernel/events/uprobes.c+21 -160 replies
3/4uprobes: ensure return_instance is detached from the list before freeingkernel/events/uprobes.c+1 -10 replies
4/4uprobes: reuse return_instances between multiple uretprobes within taskinclude/linux/uprobes.h kernel/events/uprobes.c+75 -144 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH perf/core 0/4] Improve performance and scalability of uretprobes

Include performance and multi-CPU scalability of uretprobes by avoiding a rather expensive (and somewhat limiting in terms of multi-CPU scalability) use of kmalloc()+kfree() combo for short-lived struct return_instance, used for keeping track of pending return uprobes.

First few patches are preparatory doing some internal refactoring and setting things up for the actual struct return_instance reuse done in the last patch of the series.

Andrii Nakryiko (4):
uprobes: simplify session consumer tracking
uprobes: decouple return_instance list traversal and freeing
uprobes: ensure return_instance is detached from the list before
freeing
uprobes: reuse return_instances between multiple uretprobes within
task

 include/linux/uprobes.h |  16 +++-
 kernel/events/uprobes.c | 176 +++++++++++++++++++++++++++-------------
 2 files changed, 133 insertions(+), 59 deletions(-)
Signature · 1 line
2.43.5