]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: export trace formats to user space
authorSteven Rostedt <srostedt@redhat.com>
Thu, 12 Mar 2009 18:23:17 +0000 (14:23 -0400)
committerSteven Rostedt <srostedt@redhat.com>
Fri, 13 Mar 2009 01:15:01 +0000 (21:15 -0400)
commitcf8545b58f414d1a4d8ab86a59cdedb74c273d58
treeb9fdae6b0f3cd7c902beb8bf995efe2d827e02a2
parent685132991b7633d3bb9167977db11512c8637b31
tracing: export trace formats to user space

The binary printk saves a pointer to the format string in the ring buffer.
On output, the format is processed. But if the user is reading the
ring buffer through a binary interface, the pointer is meaningless.

This patch creates a file called printk_formats that maps the pointers
to the formats.

 # cat /debug/tracing/printk_formats
0xffffffff80713d40 : "irq_handler_entry: irq=%d handler=%s\n"
0xffffffff80713d48 : "lock_acquire: %s%s%s\n"
0xffffffff80713d50 : "lock_release: %s\n"

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
kernel/trace/trace_printk.c