diff options
| author | Yafang Shao <[email protected]> | 2023-03-05 12:46:12 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2023-03-07 17:33:43 +0000 |
| commit | 73d2c61919e9aeffad1b826ec23b1a4a07c1e0dd (patch) | |
| tree | f89e1cba1f765b1724cd07292174a9328478ebbd /tools/testing/selftests/bpf/prog_tests/tracing_struct.c | |
| parent | bpf, net: bpf_local_storage memory usage (diff) | |
| download | kernel-73d2c61919e9aeffad1b826ec23b1a4a07c1e0dd.tar.gz kernel-73d2c61919e9aeffad1b826ec23b1a4a07c1e0dd.zip | |
bpf, net: sock_map memory usage
sockmap and sockhash don't have something in common in allocation, so let's
introduce different helpers to calculate their memory usage.
The reuslt as follows,
- before
28: sockmap name count_map flags 0x0
key 4B value 4B max_entries 65536 memlock 524288B
29: sockhash name count_map flags 0x0
key 4B value 4B max_entries 65536 memlock 524288B
- after
28: sockmap name count_map flags 0x0
key 4B value 4B max_entries 65536 memlock 524608B
29: sockhash name count_map flags 0x0 <<<< no updated elements
key 4B value 4B max_entries 65536 memlock 1048896B
Signed-off-by: Yafang Shao <[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/tracing_struct.c')
0 files changed, 0 insertions, 0 deletions
