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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Jul 2014 15:00:03 +0000 (08:00 -0700)
commite250100beddf49178bd36886eea77b376a1e39bd
tree6f078351f7a11ee52484d13b24086d06dce62143
parent9b87c4e58f2143ba9bc05ffff22d86d172e4f4ac
tracing: Add ftrace_trace_stack into __trace_puts/__trace_bputs

commit 8abfb8727f4a724d31f9ccfd8013fbd16d539445 upstream.

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
Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@huawei.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/trace/trace.c