• Steven Rostedt's avatar
    tracing: export trace formats to user space · 7975a2be
    Steven Rostedt authored
    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: default avatarSteven Rostedt <srostedt@redhat.com>
    7975a2be
trace_printk.c 5.37 KB