summaryrefslogtreecommitdiff
path: root/kernel/trace/trace_events.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2012-10-11 01:44:34 (GMT)
committerSteven Rostedt <rostedt@goodmis.org>2012-10-31 20:45:28 (GMT)
commitb382ede6b5eb8188926b72a9ef42fd2354342a97 (patch)
tree0381b86ab2ada35fee583fd6e547ed3454c9ebb9 /kernel/trace/trace_events.c
parent884bfe89a462fcc85c8abd96171519cf2fe70929 (diff)
downloadlinux-fsl-qoriq-b382ede6b5eb8188926b72a9ef42fd2354342a97.tar.xz
tracing: Expand ring buffer when trace_printk() is used
Since tracing is not used by 99% of Linux users, even though tracing may be configured in, it does not make sense to allocate 1.4 Megs per CPU for the ring buffers if they are not used. Thus, on boot up the ring buffers are set to a minimal size until something needs the and they are expanded. This works well for events and tracers (function, etc), but for the asynchronous use of trace_printk() which can write to the ring buffer at any time, does not expand the buffers. On boot up a check is made to see if any trace_printk() is used to see if the trace_printk() temp buffer pages should be allocated. This same code can be used to expand the buffers as well. Suggested-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_events.c')
0 files changed, 0 insertions, 0 deletions