[PATCH v2 -tip 2/4] tracing: add a resize function for making one buffer equivalent to the other buffer

2012-10-16 Thread Hiraku Toyooka
Trace buffer size is now per-cpu, so that there are following two patterns in resize of the buffers. (1) resize per-cpu buffers to same given size (2) resize per-cpu buffers to the other trace_array's buffer size for each CPU (such as preparing the max_tr which is equivalent to

[PATCH v2 -tip 2/4] tracing: add a resize function for making one buffer equivalent to the other buffer

2012-10-16 Thread Hiraku Toyooka
Trace buffer size is now per-cpu, so that there are following two patterns in resize of the buffers. (1) resize per-cpu buffers to same given size (2) resize per-cpu buffers to the other trace_array's buffer size for each CPU (such as preparing the max_tr which is equivalent to