Skip to content
Commit 238ae93d authored by Wang YanQing's avatar Wang YanQing Committed by Steven Rostedt
Browse files

tracing: Fix file mode of free_buffer

Commit 4f271a2a
(tracing: Add a proc file to stop tracing and free buffer)
implement a method to free up ring buffer in kernel memory
in the release code path of free_buffer's fd.

Then we don't need read/write support for free_buffer,
indeed we just have a dummy write fop, and don't implement read fop.

So the 0200 is more reasonable file mode for free_buffer than
the current file mode 0644.

Link: http://lkml.kernel.org/r/20130526085201.GA3183@udknight



Acked-by: default avatarVaibhav Nagarnaik <vnagarnaik@google.com>
Acked-by: default avatarDavid Sharp <dhsharp@google.com>
Signed-off-by: default avatarWang YanQing <udknight@gmail.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 8092e808
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment