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:31 +0000
committerAlexei Starovoitov <[email protected]>2023-07-06 19:42:25 +0000
commit515ee52b2224f73f63ac031cbf400cd513d2f45b (patch)
tree97a2ac9f7f36f70150e42d66be2c5d5e293e49ce /tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
parentbpf: populate the per-cpu insertions/deletions counters for hashmaps (diff)
downloadkernel-515ee52b2224f73f63ac031cbf400cd513d2f45b.tar.gz
kernel-515ee52b2224f73f63ac031cbf400cd513d2f45b.zip
bpf: make preloaded map iterators to display map elements count
Add another column to the /sys/fs/bpf/maps.debug iterator to display cur_entries, the current number of entries in the map as is returned by the bpf_map_sum_elem_count kfunc. Also fix formatting. Example: # cat /sys/fs/bpf/maps.debug id name max_entries cur_entries 2 iterator.rodata 1 0 125 cilium_auth_map 524288 666 126 cilium_runtime_ 256 0 127 cilium_signals 32 0 128 cilium_node_map 16384 1344 129 cilium_events 32 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