diff options
| author | Anton Protopopov <[email protected]> | 2023-07-06 13:39:29 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2023-07-06 19:42:25 +0000 |
| commit | 803370d3d37579e080e8c59f2360a072d0e45aff (patch) | |
| tree | 1e8f0de6a26079d782006f042f0f44b1bb97002a /tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c | |
| parent | bpf: add percpu stats for bpf_map elements insertions/deletions (diff) | |
| download | kernel-803370d3d37579e080e8c59f2360a072d0e45aff.tar.gz kernel-803370d3d37579e080e8c59f2360a072d0e45aff.zip | |
bpf: add a new kfunc to return current bpf_map elements count
A bpf_map_sum_elem_count kfunc was added to simplify getting the sum of the map
per-cpu element counters. If a map doesn't implement the counter, then the
function will always return 0.
Signed-off-by: Anton Protopopov <[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/tcp_hdr_options.c')
0 files changed, 0 insertions, 0 deletions
