]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ftrace: Allow stealing pages from pipe buffer
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Thu, 9 Aug 2012 12:31:10 +0000 (21:31 +0900)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 22 Aug 2012 00:47:11 +0000 (10:47 +1000)
commitfb7f6264adfeca95818da1b50d3e54277fc4895b
treedec369620b36b2763c872939fe1441e0e902190f
parenta36fde2e3fe069eabe2be45433de5bdac80c5f39
ftrace: Allow stealing pages from pipe buffer

Use generic steal operation on pipe buffer to allow stealing
ring buffer's read page from pipe buffer.

Note that this could reduce the performance of splice on the
splice_write side operation without affinity setting.
Since the ring buffer's read pages are allocated on the
tracing-node, but the splice user does not always execute
splice write side operation on the same node. In this case,
the page will be accessed from the another node.
Thus, it is strongly recommended to assign the splicing
thread to corresponding node.

Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/trace/trace.c