]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tracing: Have seq_buf use full buffer
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Wed, 29 Oct 2014 19:26:09 +0000 (15:26 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 20 Nov 2014 03:01:17 +0000 (22:01 -0500)
commit8cd709ae7658a7fd7f6630699e3229188c2591e4
tree1e743b588fb5dbb2acde70760985c9ce65c0609f
parent9b77215382b42ef9c5b34293ad3a95332e5b71ef
tracing: Have seq_buf use full buffer

Currently seq_buf is full when all but one byte of the buffer is
filled. Change it so that the seq_buf is full when all of the
buffer is filled.

Some of the functions would fill the buffer completely and report
everything was fine. This was inconsistent with the max of size - 1.
Changing this to be max of size makes all functions consistent.

Link: http://lkml.kernel.org/r/20141104160222.502133196@goodmis.org
Link: http://lkml.kernel.org/r/20141114011412.811957882@goodmis.org
Tested-by: Jiri Kosina <jkosina@suse.cz>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/seq_buf.h
kernel/trace/seq_buf.c