Skip to content

uprobes/perf: pre-filtering

Oleg Nesterov lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7perf: Ensure we do not free event->parent before eventkernel/events/core.c+12 -121 reply
2/7perf: Introduce hw_perf_event->tp_target and ->tp_listinclude/linux/perf_event.h kernel/events/core.c+11 -31 reply
3/7uprobes: Introduce uprobe_apply()include/linux/uprobes.h kernel/events/uprobes.c+41 -41 reply
4/7uprobes/perf: Teach trace_uprobe/perf code to track the active perf_event'skernel/trace/trace_uprobe.c+55 -01 reply
5/7uprobes/perf: Teach trace_uprobe/perf code to pre-filterkernel/trace/trace_uprobe.c+43 -31 reply
6/7uprobes/perf: Teach trace_uprobe/perf code to use UPROBE_HANDLER_REMOVEkernel/trace/trace_uprobe.c+14 -71 reply
7/7uprobes/perf: Avoid uprobe_apply() whenever possiblekernel/trace/trace_uprobe.c+36 -61 reply

Reviews trailers per patch

6 of 7 patches have a Reviewed-by or Acked-by.

PatchSrikar Dronamraju
1/7
2/7A-b
3/7A-b
4/7A-b
5/7A-b
6/7A-b
7/7A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] uprobes/perf: pre-filtering

Hello.

Based on git://git.kernel.org/pub/scm/linux/kernel/git/oleg/misc uprobes/core, on top of "[PATCH 0/5] uprobes: kill uprobe_trace_consumer and other cleanups" series.

With this series 'perf record -e uprobe ...' does not install the breakpoints into the processes it doesn't want to probe.

Probably this all needs more testing (the last patch for sure) but please review. I'll try to do more testing tomorrow.

A special note about 1/7. It was actually needed for initial implementation, this version doesn't need it. Still I am sending it at least for review, it looks "natural" and potentially useful, and I would like to know if it is correct or not.

Oleg.

 include/linux/perf_event.h  |    9 ++-
 include/linux/uprobes.h     |    6 ++
 kernel/events/core.c        |   29 +++++----
 kernel/events/uprobes.c     |   39 ++++++++++-
 kernel/trace/trace_uprobe.c |  152 ++++++++++++++++++++++++++++++++++++++++---
 5 files changed, 206 insertions(+), 29 deletions(-)