-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
btf: avoid repeated kernel BTF copies in Handle.Spec
When parsing kernel module BTF we currently obtain a copy of the vmlinux types. This is nice from an API standpoint: the user doesn't have to care that they are dealing with a module. The problem is that copying vmlinux BTF is very slow due to its size. We need to copy vmlinux BTF since it's otherwise possible for callers of Handle.Spec to modify the internal copy of vmlinux BTF by accident. Add an explicit base so that we can avoid copying the kernel spec. Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
- Loading branch information
Showing
5 changed files
with
21 additions
and
23 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
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
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