tracing: Allow system call tracepoints to handle page faults
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v1 Latest posting 2/28 patches 2 repliesIn review
- v1 posting 1/28 patches 8 repliesSuperseded
Patches in v1 posting 2/2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | tracing: Declare system call tracepoints with TRACE_EVENT_SYSCALLinclude/ include/ include/ +5 more | +98 | 0 replies | |
| 2/8 | tracing/ftrace: guard syscall probe with preempt_notraceinclude/ kernel/ | +43 | 0 replies | |
| 3/8 | tracing/perf: guard syscall probe with preempt_notraceinclude/ kernel/ | +49 | 0 replies | |
| 4/8 | tracing/bpf: guard syscall probe with preempt_notraceinclude/ | +10 | 0 replies | |
| 5/8 | tracing: Allow system call tracepoints to handle page faultsinclude/ init/ | +18 | 0 replies | |
| 6/8 | tracing/ftrace: Add might_fault check to syscall probesinclude/ kernel/ | +3 | 2 replies | |
| 7/8 | tracing/perf: Add might_fault check to syscall probesinclude/ kernel/ | +3 | 0 replies | |
| 8/8 | tracing/bpf: Add might_fault check to syscall probesinclude/ | +1 | 0 replies |
Reviews trailers per patch
4 of 8 patches have a Reviewed-by or Acked-by.
| Patch | Masami Hiramatsu (Google) | Andrii Nakryiko |
|---|---|---|
| 1/8 | ||
| 2/8 | A-b | |
| 3/8 | ||
| 4/8 | A-b T-b | |
| 5/8 | ||
| 6/8 | A-b | |
| 7/8 | ||
| 8/8 | A-b T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH resend 0/8] tracing: Allow system call tracepoints to handle page faults
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 was compile and runtime tested with ftrace and perf syscall tracing and raw syscall tracing, adding a WARN_ON_ONCE() in the generated code to validate that the intended probes are used for raw syscall tracing. The might_fault() added within those probes validate that they are called from a context where handling a page fault is OK.
This series replaces the "Faultable Tracepoints v6" series found at [1].
This has been rebased on v6.11.1, without any conflicts. I've added the Acked-by and Tested-by tags to relevant commits.
Steven, can you merge it through the tracing tree ?
Thanks,
Mathieu
Mathieu Desnoyers (8):
tracing: Declare system call tracepoints with TRACE_EVENT_SYSCALL tracing/ftrace: guard syscall probe with preempt_notrace tracing/perf: guard syscall probe with preempt_notrace tracing/bpf: guard syscall probe with preempt_notrace
tracing: Allow system call tracepoints to handle page faults tracing/ftrace: Add might_fault check to syscall probes tracing/perf: Add might_fault check to syscall probes tracing/bpf: Add might_fault check to syscall probes
include/linux/tracepoint.h | 87 +++++++++++++++++++++++++-------- include/trace/bpf_probe.h | 13 +++++ include/trace/define_trace.h | 5 ++ include/trace/events/syscalls.h | 4 +- include/trace/perf.h | 43 ++++++++++++++-- include/trace/trace_events.h | 61 +++++++++++++++++++++-- init/Kconfig | 1 + kernel/entry/common.c | 4 +- kernel/trace/trace_syscalls.c | 36 ++++++++++++-- 9 files changed, 218 insertions(+), 36 deletions(-)
Signature · 1 line
2.39.2