2023-10-02 22:55:58

by Mathieu Desnoyers

[permalink] [raw]
Subject: [RFC PATCH v3 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.

This series is based on kernel v6.5.5.

Feedback is welcome!

Thanks,

Mathieu

Cc: Michael Jeanson <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: Yonghong Song <[email protected]>
Cc: Paul E. McKenney <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: [email protected]
Cc: Joel Fernandes <[email protected]>

Mathieu Desnoyers (5):
tracing: Introduce faultable tracepoints (v3)
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 | 27 ++++++++--
include/trace/trace_events.h | 73 ++++++++++++++++++++++++--
init/Kconfig | 1 +
kernel/trace/bpf_trace.c | 10 +++-
kernel/trace/trace_events.c | 26 +++++++---
kernel/trace/trace_fprobe.c | 5 +-
kernel/trace/trace_syscalls.c | 92 +++++++++++++++++++++++----------
kernel/tracepoint.c | 58 +++++++++++----------
13 files changed, 325 insertions(+), 101 deletions(-)

--
2.25.1