tracing: show proper address for trace-printk format
authorSteven Rostedt <srostedt@redhat.com>
Thu, 23 Jul 2009 03:11:03 +0000 (23:11 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 23 Jul 2009 14:07:17 +0000 (10:07 -0400)
commit4c739ff043e5787d97c9691d62cabf7a29e75a9d
treed2604b88d526a4ac4b216d5d46d2834ac8171782
parent636eacee3b0c76915151db37203cc624becb6d7b
tracing: show proper address for trace-printk format

Since the trace_printk may use pointers to the format fields
in the buffer, they are exported via debugfs/tracing/printk_formats.
This is used by utilities that read the ring buffer in binary format.
It helps the utilities map the address of the format in the binary
buffer to what the printf format looks like.

Unfortunately, the way the output code works, it exports the address
of the pointer to the format address, and not the format address
itself. This makes the file totally useless in trying to figure
out what format string a binary address belongs to.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_printk.c