Re: [PATCH] tracing/snapshot: resize spare buffer if size changed

2019-06-28 Thread Steven Rostedt
On Tue, 25 Jun 2019 10:29:10 +0900 Eiichi Tsukata wrote: > Current snapshot implementation swaps two ring_buffers even though their > sizes are different from each other, that can cause an inconsistency > between the contents of buffer_size_kb file and the current buffer size. > > For example: >

[PATCH] tracing/snapshot: resize spare buffer if size changed

2019-06-24 Thread Eiichi Tsukata
Current snapshot implementation swaps two ring_buffers even though their sizes are different from each other, that can cause an inconsistency between the contents of buffer_size_kb file and the current buffer size. For example: # cat buffer_size_kb 7 (expanded: 1408) # echo 1 > events/enabl