]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rseq: Expose lightweight statistics in debugfs
authorThomas Gleixner <tglx@linutronix.de>
Mon, 27 Oct 2025 08:44:52 +0000 (09:44 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 4 Nov 2025 07:32:41 +0000 (08:32 +0100)
commit5412910487d0839111e4f2f3a6f33f6c9af9b007
tree18e9a4a48326a87bb60f2457edadb82d6ae220df
parentdab344753e021fe84c24f9d8b0b63cb5bcf463d7
rseq: Expose lightweight statistics in debugfs

Analyzing the call frequency without actually using tracing is helpful for
analysis of this infrastructure. The overhead is minimal as it just
increments a per CPU counter associated to each operation.

The debugfs readout provides a racy sum of all counters.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://patch.msgid.link/20251027084307.027916598@linutronix.de
include/linux/rseq.h
include/linux/rseq_entry.h
init/Kconfig
kernel/rseq.c