Commit Graph

2 Commits

Author SHA1 Message Date
35883baaac bpf-link-hang: Adjust for newer libbpf API
bpf_object__find_program_by_title’ is deprecated: libbpf v0.7+:
 use bpf_object__find_program_by_name() instead

See: https://github.com/libbpf/libbpf/issues/297

 libbpf#297 Deprecate bpf_program__title() in favor of
 bpf_program__section_name(). “Title” term is confusing and
 unconventional, it’s SEC() in code and “section name” everywhere else.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
2022-09-02 16:11:09 +02:00
25acd99b58 Add example to show hang on bpf_link close
Minimal example to show that the close() operation on a bpf_link can hang
indefinitely if the kernel is loaded (for example by traffic on an
interface with an XDP program loaded).

Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
2021-03-23 00:09:44 +01:00