]> bbs.cooldavid.org Git - net-next-2.6.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)
commitc521efd1700a8c0f7ce26f011f5eaecca17fabfa
tree8dd9f8171222e856aafa5db1c1a150098327d409
parent6ec22f9b037fc0c2e00ddb7023fad279c365324d
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