]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ring-buffer: Add page statistics to the meta-page
authorVincent Donnefort <vdonnefort@google.com>
Mon, 9 Mar 2026 16:24:47 +0000 (16:24 +0000)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 9 Mar 2026 16:33:53 +0000 (12:33 -0400)
commit7d776a36277ff2685ffc3dc7eff32002d0333ac9
tree36dc4c7f3efec5f301a2a8503a6f71ed193f0485
parent1f318b96cc84d7c2ab792fcc0bfd42a7ca890681
ring-buffer: Add page statistics to the meta-page

Add two fields pages_touched and pages_lost to the ring-buffer
meta-page. Those fields are useful to get the number of used pages in
the ring-buffer.

Link: https://patch.msgid.link/20260309162516.2623589-2-vdonnefort@google.com
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
include/uapi/linux/trace_mmap.h
kernel/trace/ring_buffer.c