Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libbpf: auto-attach skeletons struct_ops #7155

Closed

Commits on Jun 6, 2024

  1. libbpf: auto-attach skeletons struct_ops

    Similarly to `bpf_program`, support `bpf_map` automatic attachment in
    `bpf_object__attach_skeleton`. Currently only struct_ops maps could be
    attached.
    
    Bpftool
    Code-generate links in skeleton struct for struct_ops maps.
    Similarly to `bpf_program_skeleton`, set links in `bpf_map_skeleton`.
    
    Libbpf
    Extending `bpf_map` with new `autoattach` field to support enabling or
    disabling autoattach functionality, introducing getter/setter for this
    field.
    Extending `bpf_object__(attach|detach)_skeleton` with
    attaching/detaching struct_ops maps.
    
    Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com>
    mykyta5 authored and Kernel Patches Daemon committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    87ab1c1 View commit details
    Browse the repository at this point in the history