[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240412133152.723632549@goodmis.org>
Date: Fri, 12 Apr 2024 09:31:52 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: linux-kernel@...r.kernel.org
Cc: Masami Hiramatsu <mhiramat@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: [for-linus][PATCH 0/4] tracing: Fixes for v6.9
Tracing fixes for 6.9:
- Fix the buffer_percent accounting as it is dependent on three variables:
1) pages_read - number of subbuffers read
2) pages_lost - number of subbuffers lost due to overwrite
3) pages_touched - number of pages that a writer entered
These three counters only increment, and to know how many active pages
there are on the buffer at any given time, the pages_read and
pages_lost are subtracted from pages_touched. But the pages touched
was incremented whenever any writer went to the next subbuffer even
if it wasn't the only one, so it was incremented more than it should
be causing the counter for how many subbuffers currently have content
incorrect, which caused the buffer_percent that holds waiters until
the ring buffer is filled to a given percentage to wake up early.
- Fix warning of unused functions when PERF_EVENTS is not configured in
- Replace bad tab with space in Kconfig for FTRACE_RECORD_RECURSION_SIZE
- Fix to some kerneldoc function comments in eventfs code.
Arnd Bergmann (1):
tracing: hide unused ftrace_event_id_fops
Prasad Pandit (1):
tracing: Fix FTRACE_RECORD_RECURSION_SIZE Kconfig entry
Steven Rostedt (Google) (1):
ring-buffer: Only update pages_touched when a new page is touched
Yang Li (1):
eventfs: Fix kernel-doc comments to functions
----
fs/tracefs/event_inode.c | 14 ++++++++++----
kernel/trace/Kconfig | 2 +-
kernel/trace/ring_buffer.c | 6 +++---
kernel/trace/trace_events.c | 4 ++++
4 files changed, 18 insertions(+), 8 deletions(-)
Powered by blists - more mailing lists