Centos-kernel-stream-9/kernel/bpf/preload/iterators
Jerome Marchand ee0e5588ee bpf: make preloaded map iterators to display map elements count
JIRA: https://issues.redhat.com/browse/RHEL-10691

commit 515ee52b2224f73f63ac031cbf400cd513d2f45b
Author: Anton Protopopov <aspsk@isovalent.com>
Date:   Thu Jul 6 13:39:31 2023 +0000

    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 <aspsk@isovalent.com>
    Link: https://lore.kernel.org/r/20230706133932.45883-5-aspsk@isovalent.com
    Signed-off-by: Alexei Starovoitov <ast@kernel.org>

Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
2023-12-14 15:22:24 +01:00
..
.gitignore
Makefile bpf: Replace deprecated -target with --target= for Clang 2023-12-14 15:22:22 +01:00
README bpf: iterators: Split iterators.lskel.h into little- and big- endian versions 2023-06-13 22:45:02 +02:00
iterators.bpf.c bpf: make preloaded map iterators to display map elements count 2023-12-14 15:22:24 +01:00
iterators.lskel-big-endian.h bpf: iterators: Split iterators.lskel.h into little- and big- endian versions 2023-06-13 22:45:02 +02:00
iterators.lskel-little-endian.h bpf: make preloaded map iterators to display map elements count 2023-12-14 15:22:24 +01:00

README

WARNING:
If you change "iterators.bpf.c" do "make -j" in this directory to
rebuild "iterators.lskel-little-endian.h". Then, on a big-endian
machine, do "make -j big" in this directory to rebuild
"iterators.lskel-big-endian.h". Commit both resulting headers.
Make sure to have clang 10 installed.
See Documentation/bpf/bpf_devel_QA.rst