-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libbpf-cargo: Fix generation of duplicate anon types
Our skeleton generation code instantiates a new GenBtf object in many of the individual sub-steps of the generation procedure. However, that is a broken pattern: each GenBtf instance starts the counter that determines numbering of Rust types generated for anonymous C types anew and, hence, we can run into duplicate names. This change fixes the issue by using a "global" GenBtf instance instead. Signed-off-by: Daniel Müller <[email protected]>
- Loading branch information
1 parent
802e864
commit 31f8583
Showing
2 changed files
with
147 additions
and
22 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