]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
tracing: Print trace_bprintk() formats for modules too
authorSteven Rostedt <srostedt@redhat.com>
Tue, 22 Mar 2011 03:36:31 +0000 (23:36 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 4 Apr 2011 16:18:24 +0000 (12:18 -0400)
commit1813dc3776c22ad4b0294a6df8434b9a02c98109
treeb768010ffd8986d2e1df11a067aa8c47c7a0ae62
parent0588fa30db44fd2d4032b36a061c87478a43fbee
tracing: Print trace_bprintk() formats for modules too

The file debugfs/tracing/printk_formats maps the addresses
to the formats that are used by trace_bprintk() so that userspace
tools can read the buffer and be able to decode trace_bprintk events
to get the format saved when reading the ring buffer directly.

This is because trace_bprintk() does not store the format into the
buffer, but just the address of the format, which is hidden in
the kernel memory.

But currently it only exports trace_bprintk()s from the kernel core
and not for modules. The modules need their formats exported
as well.

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