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.
aya/xtask/public-api
tyrone-wu 88f5ac3114
aya,obj,int-test: 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 `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`.
3 weeks ago
..
aya-ebpf-bindings.txt public-api: regenerate 1 month ago
aya-ebpf-cty.txt chore: Bless public API changes 7 months ago
aya-ebpf-macros.txt chore: Bless public API changes 7 months ago
aya-ebpf.txt public-api: regenerate 1 month ago
aya-log-common.txt public-api: regenerate 1 month ago
aya-log-ebpf-macros.txt xtask: Add cargo-public-api 1 year ago
aya-log-ebpf.txt xtask: Add cargo-public-api 1 year ago
aya-log-parser.txt public-api: regenerate 3 months ago
aya-log.txt chore(aya-log): bless API 5 months ago
aya-obj.txt aya,obj,int-test: revamp ProgramInfo be more friendly with older kernels 3 weeks ago
aya.txt aya,obj,int-test: revamp ProgramInfo be more friendly with older kernels 3 weeks ago