ftrace: Have set_graph_* files have normal file modes
The set_graph_function and set_graph_notrace file mode should be 0644 instead of 0444 as they are writeable. Note, the mode appears to be ignored regardless, but they should at least look sane. Link: http://lkml.kernel.org/r/1409725869-4501-1-git-send-email-linx.z.chen@intel.com Acked-by: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Chen LinX <linx.z.chen@intel.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
This commit is contained in:
parent
d66a270be3
commit
1ce0500d23
|
@ -5514,10 +5514,10 @@ static __init int ftrace_init_dyn_tracefs(struct dentry *d_tracer)
|
||||||
ftrace_create_filter_files(&global_ops, d_tracer);
|
ftrace_create_filter_files(&global_ops, d_tracer);
|
||||||
|
|
||||||
#ifdef CONFIG_FUNCTION_GRAPH_TRACER
|
#ifdef CONFIG_FUNCTION_GRAPH_TRACER
|
||||||
trace_create_file("set_graph_function", 0444, d_tracer,
|
trace_create_file("set_graph_function", 0644, d_tracer,
|
||||||
NULL,
|
NULL,
|
||||||
&ftrace_graph_fops);
|
&ftrace_graph_fops);
|
||||||
trace_create_file("set_graph_notrace", 0444, d_tracer,
|
trace_create_file("set_graph_notrace", 0644, d_tracer,
|
||||||
NULL,
|
NULL,
|
||||||
&ftrace_graph_notrace_fops);
|
&ftrace_graph_notrace_fops);
|
||||||
#endif /* CONFIG_FUNCTION_GRAPH_TRACER */
|
#endif /* CONFIG_FUNCTION_GRAPH_TRACER */
|
||||||
|
|
Loading…
Reference in New Issue