]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Add alloc_snapshot kernel command line parameter
authorSteven Rostedt (Red Hat) <srostedt@redhat.com>
Fri, 8 Mar 2013 03:48:09 +0000 (22:48 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 15 Mar 2013 04:35:53 +0000 (00:35 -0400)
commit559e29ab364b3e6738c803e4c695a5cd60d93eed
tree3d51bc6a1f8c7bdf7f728113b3853f4c20441be9
parent8c07ac50b75cbd97e8b859177f166e1a78922436
tracing: Add alloc_snapshot kernel command line parameter

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

  alloc_snapshot

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: Steven Rostedt <rostedt@goodmis.org>
Documentation/kernel-parameters.txt
kernel/trace/trace.c
kernel/trace/trace.h
kernel/trace/trace_events.c