mirror of https://github.com/aya-rs/aya
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88f5ac3114
Purpose of this commit is to add detections for whether a field is available in `ProgramInfo`. - For `program_type()`, we return the new enum `ProgramType` instead of the integer representation. - For fields that we know cannot be zero, we return `Option<NonZero*>` type. - For `name_as_str()`, it now also uses the feature probe `bpf_name()` to detect if field is available or not. - Two additional feature probes are added for the fields: - `prog_info_map_ids()` probe -> `map_ids()` field - `prog_info_gpl_compatible()` probe -> `gpl_compatible()` field With the `prog_info_map_ids()` probe, the previous implementation that I had for `bpf_prog_get_info_by_fd()` is shortened to use the probe instead of having to make 2 potential syscalls. The `test_loaded_at()` test is also moved into info tests since it is better related to the info tests. `aya::programs::Programs::prog_type(&self)` now returns `ProgramType` instead of the generated FFI from aya-obj. Also previously, `loaded_programs()` could be accessed either through `aya` or `aya::programs`. To avoid confusion and duplicate export of the item, the function should now only be exposed through `aya::programs`. |
5 months ago | |
---|---|---|
.. | ||
aya-ebpf-bindings.txt | 6 months ago | |
aya-ebpf-cty.txt | 11 months ago | |
aya-ebpf-macros.txt | 11 months ago | |
aya-ebpf.txt | 6 months ago | |
aya-log-common.txt | 6 months ago | |
aya-log-ebpf-macros.txt | 2 years ago | |
aya-log-ebpf.txt | 2 years ago | |
aya-log-parser.txt | 7 months ago | |
aya-log.txt | 9 months ago | |
aya-obj.txt | 5 months ago | |
aya.txt | 5 months ago |