Commit 6d98a0f
tracing: Set actual size after ring buffer resize
Currently we can resize trace ringbuffer by writing a value into file
'buffer_size_kb', then by reading the file, we get the value that is
usually what we wrote. However, this value may be not actual size of
trace ring buffer because of the round up when doing resize in kernel,
and the actual size would be more useful.
Link: https://lore.kernel.org/linux-trace-kernel/20230705002705.576633-1-zhengyejian1@huawei.com
Cc: <mhiramat@kernel.org>
Signed-off-by: Zheng Yejian <zhengyejian1@huawei.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>1 parent 6bba928 commit 6d98a0f
1 file changed
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6286 | 6286 | | |
6287 | 6287 | | |
6288 | 6288 | | |
| 6289 | + | |
| 6290 | + | |
| 6291 | + | |
| 6292 | + | |
| 6293 | + | |
| 6294 | + | |
| 6295 | + | |
| 6296 | + | |
| 6297 | + | |
6289 | 6298 | | |
6290 | 6299 | | |
6291 | 6300 | | |
| |||
6364 | 6373 | | |
6365 | 6374 | | |
6366 | 6375 | | |
6367 | | - | |
6368 | | - | |
6369 | | - | |
6370 | | - | |
| 6376 | + | |
6371 | 6377 | | |
6372 | 6378 | | |
6373 | 6379 | | |
6374 | 6380 | | |
6375 | | - | |
6376 | | - | |
6377 | | - | |
6378 | | - | |
| 6381 | + | |
6379 | 6382 | | |
6380 | 6383 | | |
6381 | 6384 | | |
| |||
0 commit comments