-
Notifications
You must be signed in to change notification settings - Fork 705
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters