Skip to content

Faultable Tracepoints

Mathieu Desnoyers bpf linux-trace-kernel lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest5 patches 5 repliesIn review
  2. v5 posting 2/28 patches 2 repliesSuperseded
  3. v5 posting 1/28 patches 4 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v45 patches30 repliesSuperseded
v3 RFC5 patches9 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5tracing: Introduce faultable tracepointsinclude/linux/tracepoint-defs.h include/linux/tracepoint.h include/trace/define_trace.h +5 more+136 -540 replies
2/5tracing/ftrace: Add support for faultable tracepointsinclude/trace/trace_events.h kernel/trace/trace_events.c+71 -90 replies
3/5tracing/bpf-trace: Add support for faultable tracepointsinclude/trace/bpf_probe.h kernel/trace/bpf_trace.c+17 -65 replies
4/5tracing/perf: Add support for faultable tracepointsinclude/trace/perf.h+20 -20 replies
5/5tracing: Convert sys_enter/exit to faultable tracepointsinclude/trace/events/syscalls.h kernel/trace/trace_syscalls.c+46 -100 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchMasami Hiramatsu (Google)
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

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

Read the v6 thread

Cover letter [PATCH v6 0/5] Faultable Tracepoints

Wire up the system call tracepoints with Tasks Trace RCU to allow the ftrace, perf, and eBPF tracers to handle page faults.

This series does the initial wire-up allowing tracers to handle page faults, but leaves out the actual handling of said page faults as future work.

I have tested this against a feature branch of lttng-modules which implements handling of page faults for the filename argument of the openat(2) system call.

This v6 rebases v5 on top of v6.11-rc5. It requires the "cleanup.h:
Introduce DEFINE_INACTIVE_GUARD()/activate_guard()" series.

Thanks,

Mathieu

Mathieu Desnoyers (5):
tracing: Introduce faultable tracepoints tracing/ftrace: Add support for faultable tracepoints tracing/bpf-trace: Add support for faultable tracepoints tracing/perf: Add support for faultable tracepoints
tracing: Convert sys_enter/exit to faultable tracepoints

 include/linux/tracepoint-defs.h | 14 ++++++
 include/linux/tracepoint.h      | 88 +++++++++++++++++++++++----------
 include/trace/bpf_probe.h       | 21 ++++++--
 include/trace/define_trace.h    |  7 +++
 include/trace/events/syscalls.h |  4 +-
 include/trace/perf.h            | 22 ++++++++-
 include/trace/trace_events.h    | 68 ++++++++++++++++++++++++-
 init/Kconfig                    |  1 +
 kernel/trace/bpf_trace.c        |  4 +-
 kernel/trace/trace_events.c     | 16 +++---
 kernel/trace/trace_fprobe.c     |  5 +-
 kernel/trace/trace_syscalls.c   | 52 ++++++++++++++++---
 kernel/tracepoint.c             | 65 ++++++++++++++----------
 13 files changed, 288 insertions(+), 79 deletions(-)
Signature · 1 line
2.39.2