tracing: Add seq_buf_get_buf() and seq_buf_commit() helper functions
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Wed, 29 Oct 2014 21:30:50 +0000 (17:30 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 20 Nov 2014 03:01:18 +0000 (22:01 -0500)
commit01cb06a4c229908d239149017049fdd1fca1dd51
tree16af818800dc163c155c20dbacb782257d604534
parent8cd709ae7658a7fd7f6630699e3229188c2591e4
tracing: Add seq_buf_get_buf() and seq_buf_commit() helper functions

Add two helper functions; seq_buf_get_buf() and seq_buf_commit() that
are used by seq_buf_path(). This makes the code similar to the
seq_file: seq_path() function, and will help to be able to consolidate
the functions between seq_file and trace_seq.

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