tracing: add trace_bprintk()
authorLai Jiangshan <laijs@cn.fujitsu.com>
Fri, 6 Mar 2009 16:21:48 +0000 (17:21 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 6 Mar 2009 16:59:11 +0000 (17:59 +0100)
commit1ba28e02a18cbdbea123836f6c98efb09cbf59ec
tree41df06a06c702152902ffd7250f284a6efe9b0da
parent1427cdf0592368bdec57276edaf714040ee8744f
tracing: add trace_bprintk()

Impact: add a generic printk() for tracing, like trace_printk()

trace_bprintk() uses the infrastructure to record events on ring_buffer.

[ fweisbec@gmail.com: ported to latest -tip, made it work if
  !CONFIG_MODULES, never free the format strings from modules
  because we can't keep track of them and conditionnaly create
  the ftrace format strings section (reported by Steven Rostedt) ]

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <1236356510-8381-4-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/asm-generic/vmlinux.lds.h
include/linux/ftrace.h
include/linux/module.h
kernel/module.c
kernel/trace/trace.c
kernel/trace/trace_bprintk.c