diff options
author | Yafang Shao <laoar.shao@gmail.com> | 2023-03-05 12:46:10 +0000 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-03-07 09:33:43 -0800 |
commit | 2f536977d6f1481f0a149140c8311103ddebe36a (patch) | |
tree | 3697a0a85120b531db2b8eea88652b62e40f8b8d /kernel/bpf/bpf_inode_storage.c | |
parent | f062226d8d59b521ddc946ad791048188a16722a (diff) |
bpf: local_storage memory usage
A new helper is introduced to calculate local_storage map memory usage.
Currently the dynamically allocated elements are not counted, since it
will take runtime overhead in the element update or delete path. So
let's put it aside currently, and implement it in the future if the user
really needs it.
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Link: https://lore.kernel.org/r/20230305124615.12358-14-laoar.shao@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/bpf/bpf_inode_storage.c')
0 files changed, 0 insertions, 0 deletions