diff options
author | Yafang Shao <laoar.shao@gmail.com> | 2023-03-05 12:46:04 +0000 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-03-07 09:33:42 -0800 |
commit | 2f7e4ab2caa9a692ffc843f801cea90632cdc782 (patch) | |
tree | fe03c4fc38fad736eae66ca562ec86c4c40b2226 /kernel/crash_core.c | |
parent | 2e89caf055a64cb531cbd8ab7a01c3e9b0b3133d (diff) |
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 'kernel/crash_core.c')
0 files changed, 0 insertions, 0 deletions