]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bpf/bpftool: add program & link type names'
authorAndrii Nakryiko <andrii@kernel.org>
Mon, 4 Apr 2022 21:51:48 +0000 (14:51 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 4 Apr 2022 21:54:47 +0000 (14:54 -0700)
commit250dd4b675cc03751f66e9d803a13f487c8d0123
treef5030cb3f1d70742988ea80625f702f1aead24cd
parent8c6ed416a841ae3dcf7e7f776abbe597b6e5929d
parentdaae8d621456701596e955d2e5d611f550c47fb7
Merge branch 'bpf/bpftool: add program & link type names'

Milan Landaverde says:

====================

With the addition of the syscall prog type we should now
be able to see feature probe info for that prog type:

    $ bpftool feature probe kernel
    ...
    eBPF program_type syscall is available
    ...
    eBPF helpers supported for program type syscall:
        ...
        - bpf_sys_bpf
        - bpf_sys_close

And for the link types, their names should aid in
the output.

Before:
    $ bpftool link show
    50: type 7  prog 5042
    bpf_cookie 0
    pids vfsstat(394433)

After:
    $ bpftool link show
    57: perf_event  prog 5058
    bpf_cookie 0
    pids vfsstat(394725)
====================

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>