• Steven Rostedt (Red Hat)'s avatar
    tracing: Add alloc_snapshot kernel command line parameter · 55034cd6
    Steven Rostedt (Red Hat) authored
    If debugging the kernel, and the developer wants to use
    tracing_snapshot() in places where tracing_snapshot_alloc() may
    be difficult (or more likely, the developer is lazy and doesn't
    want to bother with tracing_snapshot_alloc() at all), then adding
    to the kernel command line parameter will tell ftrace to allocate
    the snapshot buffer (if configured) when it allocates the main
    tracing buffer.
    I also noticed that ring_buffer_expanded and tracing_selftest_disabled
    had inconsistent use of boolean "true" and "false" with "0" and "1".
    I cleaned that up too.
    Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
trace.h 29.4 KB