projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ce0500
)
tracing: Fix the file mode of stack tracer
author
Zhengyuan Liu
<liuzhengyuan@kylinos.cn>
Thu, 8 Feb 2018 01:41:53 +0000
(09:41 +0800)
committer
Steven Rostedt (VMware)
<rostedt@goodmis.org>
Thu, 3 May 2018 15:58:05 +0000
(11:58 -0400)
It looks weird that the stack_trace_filter file can be written by root
but shows that it does not have write permission by ll command.
Link:
http://lkml.kernel.org/r/1518054113-28096-1-git-send-email-liuzhengyuan@kylinos.cn
Signed-off-by: Zhengyuan Liu <liuzhengyuan@kylinos.cn>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_stack.c
patch
|
blob
|
history
diff --git
a/kernel/trace/trace_stack.c
b/kernel/trace/trace_stack.c
index 3c7bfc4bf5e9981b687ca8dd4ed1cf890b38ee12..4237eba4ef2020c6debb9df2851702b859ae515f 100644
(file)
--- a/
kernel/trace/trace_stack.c
+++ b/
kernel/trace/trace_stack.c
@@
-472,7
+472,7
@@
static __init int stack_trace_init(void)
NULL, &stack_trace_fops);
#ifdef CONFIG_DYNAMIC_FTRACE
- trace_create_file("stack_trace_filter", 0
4
44, d_tracer,
+ trace_create_file("stack_trace_filter", 0
6
44, d_tracer,
&trace_ops, &stack_trace_filter_fops);
#endif