]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit8abfb8727f4a724d31f9ccfd8013fbd16d539445
tree0076fb34a24b856fcf31f5fa3307e2363a9ea3b3
parent2448e3493cb3874baa90725c87869455ebf11cd2
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