]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - lib/seq_buf.c
seq_buf: Create seq_buf_used() to find out how much was written
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Thu, 6 Nov 2014 21:38:28 +0000 (16:38 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 20 Nov 2014 03:01:13 +0000 (22:01 -0500)
commiteeab98154dc0b49afd398afdd71c464a8af5911f
treed460d6f09a6a8160113d81efb6a4abe080c109c3
parent0736c033a81547b1cdc5120fc8dd60e26a00fd28
seq_buf: Create seq_buf_used() to find out how much was written

Add a helper function seq_buf_used() that replaces the SEQ_BUF_USED()
private macro to let callers have a method to know how much of the
seq_buf was written to.

Link: http://lkml.kernel.org/r/20141114011412.170377300@goodmis.org
Link: http://lkml.kernel.org/r/20141114011413.321654244@goodmis.org
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