aya-obj v0.1.0
New Features
- Rename Bpf to Ebpf And BpfLoader to EbpfLoader. This also adds type aliases to preserve the use of the old names, making updating to a new Aya release less of a burden. These aliases are marked as deprecated since we'll likely remove them in a later release.
Other
-
revamp MapInfo be more friendly with older kernels Adds detection for whether a field is available in
MapInfo:- For
map_type(), we treturn new enumMapTypeinstead of the integer representation. - For fields that can't be zero, we return
Option<NonZero*>type. - For
name_as_str(), it now uses the feature probebpf_name()to detect if field is available. Although the feature probe checks for program name, it can also be used for map name since they were both introduced in the same commit.
- For
-
revamp ProgramInfo be more friendly with older kernels Purpose of this commit is to add detections for whether a field is available in
ProgramInfo.- For
program_type(), we return the new enum instead of the integer representation.
- For