]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Add ftrace_trace_stack into __trace_puts/__trace_bputs
authorzhangwei(Jovi) <jovi.zhangwei@huawei.com>
Thu, 18 Jul 2013 08:31:05 +0000 (16:31 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 15 Jul 2014 15:04:40 +0000 (11:04 -0400)
commit832c62f53a6d197387127a54cce803cab428ca1e
tree0076fb34a24b856fcf31f5fa3307e2363a9ea3b3
parent26e5179ede39d0ef96c4dd2dbbf577dcf58c42a8
tracing: Add ftrace_trace_stack into __trace_puts/__trace_bputs

Currently trace option stacktrace is not applicable for
trace_printk with constant string argument, the reason is
in __trace_puts/__trace_bputs ftrace_trace_stack is missing.

In contrast, when using trace_printk with non constant string
argument(will call into __trace_printk/__trace_bprintk), then
trace option stacktrace is workable, this inconstant result
will confuses users a lot.

Link: http://lkml.kernel.org/p/51E7A7C9.9040401@huawei.com
Cc: stable@vger.kernel.org # 3.10+
Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@huawei.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c