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

features: implement probes for StructOps maps and programs #746

Merged
merged 3 commits into from Aug 1, 2022

Commits on Jul 29, 2022

  1. features: populate MapCreateAttr directly

    Remove all variables declared in createMapTypeAttr in favor of
    writing values directly into a MapCreateAttr.
    
    Signed-off-by: Timo Beckers <timo@isovalent.com>
    ti-mo committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    eb9b022 View commit details
    Browse the repository at this point in the history
  2. features: implement feature probe for StructOpsMap

    With the libbpf feature probe API being reworked a while back, a probe for
    StructOps maps was also implemented. Setting an invalid vmlinux type id
    and checking for ENOTSUPP signals the map's availability.
    
    Signed-off-by: Timo Beckers <timo@isovalent.com>
    ti-mo committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    a4037c4 View commit details
    Browse the repository at this point in the history
  3. features: implement feature probe for StructOps program

    ENOTSUPP means the program type is available.
    
    Signed-off-by: Timo Beckers <timo@isovalent.com>
    ti-mo committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    40ec2f0 View commit details
    Browse the repository at this point in the history