diff options
| author | Yafang Shao <[email protected]> | 2023-03-05 12:46:04 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2023-03-07 17:33:42 +0000 |
| commit | 2f7e4ab2caa9a692ffc843f801cea90632cdc782 (patch) | |
| tree | fe03c4fc38fad736eae66ca562ec86c4c40b2226 /tools/testing/selftests/bpf/prog_tests/sockmap_basic.c | |
| parent | bpf: reuseport_array memory usage (diff) | |
| download | kernel-2f7e4ab2caa9a692ffc843f801cea90632cdc782.tar.gz kernel-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 <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/sockmap_basic.c')
0 files changed, 0 insertions, 0 deletions
