• Alexei Starovoitov's avatar
    add helpers to access program tag · b1df37c8
    Alexei Starovoitov authored
    bpf_obj_get_info() to retreive prog_tag from the kernel based on prog_fd (kernel 4.13+)
    bpf_prog_compute_tag() to compute prog_tag from a set of bpf_insns (kernel independent)
    bpf_prog_get_tag() to retrieve prog_tag from /proc/pid/fdinfo/fd (kernel 4.10+)
    Signed-off-by: default avatarAlexei Starovoitov <ast@fb.com>
    b1df37c8
libbpf.c 28.4 KB