• Teng Qin's avatar
    Add bpf_get_first_key helper · db7fab56
    Teng Qin authored
    This commit adds bpf_get_first_key helper, which gets the first key of
    the map. It automatically tries to use the new Kernel functionality and
    falls back to old Kernel behavior. This helps us unify the logic to walk
    a map across different APIs (Python, C++, etc.)
    db7fab56
libbpf.h 7.73 KB