diff options
author | Breno Leitao <leitao@debian.org> | 2025-02-06 14:05:52 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2025-02-10 18:04:17 +0300 |
commit | 1c1377d7b60c2d96eefab0bd9740d4a27fb0e1d3 (patch) | |
tree | 42d47c7e4bed248f6281dfb9e14abbd53a10abd1 /tools/perf/scripts/python/task-analyzer.py | |
parent | acdefab0dcbc3833b5a734ab80d792bb778517a0 (diff) | |
download | linux-1c1377d7b60c2d96eefab0bd9740d4a27fb0e1d3.tar.xz |
netconsole: consolidate send buffers into netconsole_target struct
Move the static buffers from send_msg_no_fragmentation() and
send_msg_fragmented() into the netconsole_target structure. This
simplifies the code by:
- Eliminating redundant static buffers
- Centralizing buffer management in the target structure
- Reducing memory usage by 1KB (one buffer instead of two)
The buffer in netconsole_target is protected by target_list_lock,
maintaining the same synchronization semantics as the original code.
Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions