]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Add pipe_close interface
authorSteven Rostedt <srostedt@redhat.com>
Mon, 7 Dec 2009 14:06:24 +0000 (09:06 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 7 Dec 2009 17:01:35 +0000 (12:01 -0500)
commite76336cf3fb9141c56426f101165c5f435e6a48b
tree8dd9f8171222e856aafa5db1c1a150098327d409
parent74e23fcca9637aa0b7e6572430d70b74cce55262
tracing: Add pipe_close interface

An ftrace plugin can add a pipe_open interface when the user opens
trace_pipe. But if the plugin allocates something within the pipe_open
it can not free it because there exists no pipe_close. The hook to
the trace file open has a corresponding close. The closing of the
trace_pipe file should also have a corresponding close.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c
kernel/trace/trace.h