public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCHv8 perf/core 0/2] uprobe: Add session support
@ 2024-10-18 20:22 Jiri Olsa
  2024-10-18 20:22 ` [PATCHv8 perf/core 1/2] uprobe: Add data pointer to consumer handlers Jiri Olsa
  2024-10-18 20:22 ` [PATCHv8 perf/core 2/2] uprobe: Add support for session consumer Jiri Olsa
  0 siblings, 2 replies; 5+ messages in thread
From: Jiri Olsa @ 2024-10-18 20:22 UTC (permalink / raw)
  To: Oleg Nesterov, Peter Zijlstra, Alexei Starovoitov,
	Daniel Borkmann, Andrii Nakryiko
  Cc: bpf, Martin KaFai Lau, Song Liu, Yonghong Song, John Fastabend,
	KP Singh, Stanislav Fomichev, Hao Luo, Steven Rostedt,
	Masami Hiramatsu, linux-kernel, linux-trace-kernel

hi,
this patchset is adding support for session uprobe attachment and
using it through bpf link for bpf programs.

The session means that the uprobe consumer is executed on entry
and return of probed function with additional control:
  - entry callback can control execution of the return callback
  - entry and return callbacks can share data/cookie

On more details please see patch #2.

The patchset is based on Peter's perf/core [1].

v8 changes:
  - split and sepatate only the perf/core patches
  - rebased and reposted to proper ppl/lists

thanks,
jirka


[1] git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git perf/core
---
Jiri Olsa (2):
      uprobe: Add data pointer to consumer handlers
      uprobe: Add support for session consumer

 include/linux/uprobes.h                               |  25 +++++++++++++++--
 kernel/events/uprobes.c                               | 148 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------
 kernel/trace/bpf_trace.c                              |   6 ++--
 kernel/trace/trace_uprobe.c                           |  12 +++++---
 tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c |   2 +-
 5 files changed, 154 insertions(+), 39 deletions(-)

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

end of thread, other threads:[~2024-10-25  8:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-18 20:22 [PATCHv8 perf/core 0/2] uprobe: Add session support Jiri Olsa
2024-10-18 20:22 ` [PATCHv8 perf/core 1/2] uprobe: Add data pointer to consumer handlers Jiri Olsa
2024-10-25  8:02   ` [tip: perf/core] " tip-bot2 for Jiri Olsa
2024-10-18 20:22 ` [PATCHv8 perf/core 2/2] uprobe: Add support for session consumer Jiri Olsa
2024-10-25  8:02   ` [tip: perf/core] " tip-bot2 for Jiri Olsa

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