diff options
author | Steven Rostedt (Google) <[email protected]> | 2023-12-19 13:54:29 -0500 |
---|---|---|
committer | Steven Rostedt (Google) <[email protected]> | 2023-12-21 11:04:15 -0500 |
commit | 2f84b39f48476615186af5b3220ad5a2c756679b (patch) | |
tree | 8006b5c599719b990807281a82233eb1c2d91f5b /scripts/gdb/linux/utils.py | |
parent | 1acce70374caabc2945aa07a862f834fb7c2914f (diff) |
tracing: Update subbuffer with kilobytes not page order
Using page order for deciding what the size of the ring buffer sub buffers
are is exposing a bit too much of the implementation. Although the sub
buffers are only allocated in orders of pages, allow the user to specify
the minimum size of each sub-buffer via kilobytes like they can with the
buffer size itself.
If the user specifies 3 via:
echo 3 > buffer_subbuf_size_kb
Then the sub-buffer size will round up to 4kb (on a 4kb page size system).
If they specify:
echo 6 > buffer_subbuf_size_kb
The sub-buffer size will become 8kb.
and so on.
Link: https://lore.kernel.org/linux-trace-kernel/[email protected]
Cc: Masami Hiramatsu <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Tzvetomir Stoyanov <[email protected]>
Cc: Vincent Donnefort <[email protected]>
Cc: Kent Overstreet <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions