diff options
author | Wang YanQing <udknight@gmail.com> | 2013-05-26 10:52:01 +0200 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-06-12 00:38:49 +0200 |
commit | 238ae93d699d59876b470bf6455de22bcfaa9a1b (patch) | |
tree | abd8e269b1c48ffcd4eb4e9120edd051f58202cd /kernel/trace/ftrace.c | |
parent | tracing/trivial: Consolidate error return condition (diff) | |
download | linux-238ae93d699d59876b470bf6455de22bcfaa9a1b.tar.xz linux-238ae93d699d59876b470bf6455de22bcfaa9a1b.zip |
tracing: Fix file mode of free_buffer
Commit 4f271a2a60c748599b30bb4dafff30d770439b96
(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: Vaibhav Nagarnaik <vnagarnaik@google.com>
Acked-by: David Sharp <dhsharp@google.com>
Signed-off-by: Wang YanQing <udknight@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions