]> 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>
Thu, 20 Sep 2012 00:14:51 +0000 (10:14 +1000)
commit289d37a11c60b39b79751c3c03e98e99b77a4fc9
tree91586caa38f7ed3892aff4784fb0e816ad4ca8f2
parente6a4ef7e3310ff61c39eedbc999e2ee1d36b8c8d
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