-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libbpf-rs: handle maps that were autocreate(false)
If map auto creation was disabled, the Object would fail to load since the map's underlying fd will be -1. This checks the if the map autocreate flag was disabled and skips creating a Map for it. Signed-off-by: Eugene Yakubovich <eyakubovich@gmail.com>
- Loading branch information
1 parent
99257aa
commit d25c42e
Showing
2 changed files
with
20 additions
and
3 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