]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ring-buffer: Fix bytes_dropped calculation issue
authorFeng Yang <yangfeng@kylinos.cn>
Sun, 23 Feb 2025 07:01:06 +0000 (15:01 +0800)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 28 Mar 2025 12:39:26 +0000 (08:39 -0400)
commitc73f0b69648501978e8b3e8fa7eef7f4197d0481
tree4ba38faa580a80f7f5410ca29d74beac2aa5ac25
parentd082ecbc71e9e0bf49883ee4afd435a77a5101b6
ring-buffer: Fix bytes_dropped calculation issue

The calculation of bytes-dropped and bytes_dropped_nested is reversed.
Although it does not affect the final calculation of total_dropped,
it should still be modified.

Link: https://lore.kernel.org/20250223070106.6781-1-yangfeng59949@163.com
Fixes: 6c43e554a2a5 ("ring-buffer: Add ring buffer startup selftest")
Signed-off-by: Feng Yang <yangfeng@kylinos.cn>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/ring_buffer.c