aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
diff options
context:
space:
mode:
authorAnton Protopopov <[email protected]>2023-07-06 13:39:28 +0000
committerAlexei Starovoitov <[email protected]>2023-07-06 19:42:25 +0000
commit25954730461af01f66afa9e17036b051986b007e (patch)
treee25d98938a200a03fac532020b4df5d93419f4ac /tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
parentselftests/bpf: Add benchmark for bpf memory allocator (diff)
downloadkernel-25954730461af01f66afa9e17036b051986b007e.tar.gz
kernel-25954730461af01f66afa9e17036b051986b007e.zip
bpf: add percpu stats for bpf_map elements insertions/deletions
Add a generic percpu stats for bpf_map elements insertions/deletions in order to keep track of both, the current (approximate) number of elements in a map and per-cpu statistics on update/delete operations. To expose these stats a particular map implementation should initialize the counter and adjust it as needed using the 'bpf_map_*_elem_count' helpers provided by this commit. 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