OSDN Git Service

ring-buffer: Add percentage of ring buffer full to wake up reader
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 30 Nov 2018 01:32:26 +0000 (20:32 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sun, 9 Dec 2018 01:54:08 +0000 (20:54 -0500)
commit2c2b0a78b373908926e4683ea5571332f63c0eb5
tree4ffbcfc1abdc5569e7f444425c86948f1cd2426c
parent9c8e2f6d3d361439cc6744a094f1c15681b55269
ring-buffer: Add percentage of ring buffer full to wake up reader

Instead of just waiting for a page to be full before waking up a pending
reader, allow the reader to pass in a "percentage" of pages that have
content before waking up a reader. This should help keep the process of
reading the events not cause wake ups that constantly cause reading of the
buffer.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/linux/ring_buffer.h
kernel/trace/ring_buffer.c
kernel/trace/trace.c