Skip to content
Commit df4aa7e8 authored by Zheng Yejian's avatar Zheng Yejian Committed by Greg Kroah-Hartman
Browse files

tracing: Set actual size after ring buffer resize

[ Upstream commit 6d98a0f2 ]

Currently we can resize trace ringbuffer by writing a value into file
'buffer_size_kb', then by reading the file, we get the value that is
usually what we wrote. However, this value may be not actual size of
trace ring buffer because of the round up when doing resize in kernel,
and the actual size would be more useful.

Link: https://lore.kernel.org/linux-trace-kernel/20230705002705.576633-1-zhengyejian1@huawei.com



Cc: <mhiramat@kernel.org>
Signed-off-by: default avatarZheng Yejian <zhengyejian1@huawei.com>
Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
Stable-dep-of: d78ab792 ("tracing: Stop current tracer when resizing buffer")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 07ad456e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment