diff options
author | 2023-03-05 12:46:04 +0000 | |
---|---|---|
committer | 2023-03-07 09:33:42 -0800 | |
commit | 2f7e4ab2caa9a692ffc843f801cea90632cdc782 (patch) | |
tree | fe03c4fc38fad736eae66ca562ec86c4c40b2226 /scripts/generate_rust_analyzer.py | |
parent | bpf: reuseport_array memory usage (diff) | |
download | linux-rng-2f7e4ab2caa9a692ffc843f801cea90632cdc782.tar.xz linux-rng-2f7e4ab2caa9a692ffc843f801cea90632cdc782.zip |
bpf: ringbuf memory usage
A new helper ringbuf_map_mem_usage() is introduced to calculate ringbuf
memory usage.
The result as follows,
- before
15: ringbuf name count_map flags 0x0
key 0B value 0B max_entries 65536 memlock 0B
- after
15: ringbuf name count_map flags 0x0
key 0B value 0B max_entries 65536 memlock 78424B
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20230305124615.12358-8-laoar.shao@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions