mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v6 0/5] Faultable Tracepoints
@ 2024-08-28 14:41 Mathieu Desnoyers
  2024-08-28 14:41 ` [PATCH v6 1/5] tracing: Introduce faultable tracepoints Mathieu Desnoyers
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Mathieu Desnoyers @ 2024-08-28 14:41 UTC (permalink / raw)
  To: Steven Rostedt, Masami Hiramatsu
  Cc: linux-kernel, Mathieu Desnoyers, Peter Zijlstra,
	Alexei Starovoitov, Yonghong Song, Paul E . McKenney,
	Ingo Molnar, Arnaldo Carvalho de Melo, Mark Rutland,
	Alexander Shishkin, Namhyung Kim, bpf, Joel Fernandes,
	linux-trace-kernel

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

Link: https://lore.kernel.org/lkml/20240828143719.828968-1-mathieu.desnoyers@efficios.com/ # cleanup.h dependency
Link: https://lore.kernel.org/lkml/20240627152340.82413-1-mathieu.desnoyers@efficios.com/ # v5
Link: https://lore.kernel.org/lkml/20231120205418.334172-1-mathieu.desnoyers@efficios.com/
Link: https://lore.kernel.org/lkml/e4e9a2bc-1776-4b51-aba4-a147795a5de1@efficios.com/
Link: https://lore.kernel.org/lkml/a0ac5f77-411e-4562-9863-81196238f3f5@efficios.com/
Link: https://lore.kernel.org/lkml/ba543d44-9302-4115-ac4f-d4e9f8d98a90@paulmck-laptop/
Link: https://lore.kernel.org/lkml/20231120221524.GD8262@noisy.programming.kicks-ass.net/
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Yonghong Song <yhs@fb.com>
Cc: Paul E. McKenney <paulmck@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: bpf@vger.kernel.org
Cc: Joel Fernandes <joel@joelfernandes.org>
Cc: linux-trace-kernel@vger.kernel.org

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(-)

-- 
2.39.2

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

end of thread, other threads:[~2024-09-09 20:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-28 14:41 [PATCH v6 0/5] Faultable Tracepoints Mathieu Desnoyers
2024-08-28 14:41 ` [PATCH v6 1/5] tracing: Introduce faultable tracepoints Mathieu Desnoyers
2024-08-28 14:41 ` [PATCH v6 2/5] tracing/ftrace: Add support for " Mathieu Desnoyers
2024-08-28 14:41 ` [PATCH v6 3/5] tracing/bpf-trace: " Mathieu Desnoyers
2024-09-05  1:21   ` Andrii Nakryiko
2024-09-09 15:11     ` Mathieu Desnoyers
2024-09-09 16:53       ` Andrii Nakryiko
2024-09-09 17:22         ` Mathieu Desnoyers
2024-09-09 20:13           ` Andrii Nakryiko
2024-08-28 14:41 ` [PATCH v6 4/5] tracing/perf: " Mathieu Desnoyers
2024-08-28 14:41 ` [PATCH v6 5/5] tracing: Convert sys_enter/exit to " Mathieu Desnoyers

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

all inboxes | Powered by JetHome®