summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_stack.c
diff options
context:
space:
mode:
authorHiraku Toyooka <hiraku.toyooka.gu@hitachi.com>2012-10-17 11:56:16 +0900
committerSteven Rostedt <rostedt@goodmis.org>2012-11-15 17:10:21 -0500
commitd60da506cbeb3f1907a740547dd7ef04a93e908e (patch)
treeb9d32b5ac2061c2c86f0e9d074349f70d8d52199 /kernel/trace/trace_stack.c
parent1c7d66732458dc187008e3f5b2f71e019e320fc2 (diff)
downloadop-kernel-dev-d60da506cbeb3f1907a740547dd7ef04a93e908e.zip
op-kernel-dev-d60da506cbeb3f1907a740547dd7ef04a93e908e.tar.gz
tracing: Add a resize function to make one buffer equivalent to another buffer
Trace buffer size is now per-cpu, so that there are the following two patterns in resizing of buffers. (1) resize per-cpu buffers to same given size (2) resize per-cpu buffers to another trace_array's buffer size for each CPU (such as preparing the max_tr which is equivalent to the global_trace's size) __tracing_resize_ring_buffer() can be used for (1), and had implemented (2) inside it for resetting the global_trace to the original size. (2) was also implemented in another place. So this patch assembles them in a new function - resize_buffer_duplicate_size(). Link: http://lkml.kernel.org/r/20121017025616.2627.91226.stgit@falsita Signed-off-by: Hiraku Toyooka <hiraku.toyooka.gu@hitachi.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_stack.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud