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

btf: Add spec types iterator #678

Merged
merged 1 commit into from May 23, 2022
Merged

Commits on May 23, 2022

  1. btf: Add spec types iterator

    This commit introduces the TypesIterator which is used to iterate over
    all types of a given spec.
    
    One notable user is "pwru" [1] which needs to iterate over all vmlinux
    BTF types to find functions which accept SKB as a param.
    
    The iterator is very similar to the existing InstructionIterator, as
    both export the Next() method and set the values and indices in the
    public fields.
    
    [1]: https://github.com/cilium/pwru
    
    Suggested-by: Timo Beckers <timo@isovalent.com>
    Signed-off-by: Martynas Pumputis <m@lambda.lt>
    brb committed May 23, 2022
    Copy the full SHA
    5618ccb View commit details
    Browse the repository at this point in the history