diff options
author | Yafang Shao <laoar.shao@gmail.com> | 2023-03-05 15:46:02 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-03-07 20:33:42 +0300 |
commit | cbb9b6068c68332eefb0ef4c0ebf6f96c35d9bde (patch) | |
tree | 7234eb417bce1bf5d299adce179a10b07b282171 /kernel/bpf/reuseport_array.c | |
parent | 1746d0555a8795c7ecfeab6a2c3e3c824cf57535 (diff) | |
download | linux-cbb9b6068c68332eefb0ef4c0ebf6f96c35d9bde.tar.xz |
bpf: stackmap memory usage
A new helper is introduced to get stackmap memory usage. Some small
memory allocations are ignored as their memory size is quite small
compared to the totol usage.
The result as follows,
- before
16: stack_trace name count_map flags 0x0
key 4B value 8B max_entries 65536 memlock 1048576B
- after
16: stack_trace name count_map flags 0x0
key 4B value 8B max_entries 65536 memlock 2097472B
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Link: https://lore.kernel.org/r/20230305124615.12358-6-laoar.shao@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/bpf/reuseport_array.c')
0 files changed, 0 insertions, 0 deletions