diff options
| author | Andrii Nakryiko <[email protected]> | 2023-12-13 19:08:35 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2023-12-13 23:47:05 +0000 |
| commit | 29c302a2e265a356434b005155990a9e766db75d (patch) | |
| tree | e40449d783e85ca73b620a87592a13ab9b7bd0c4 /tools/lib/bpf/features.c | |
| parent | libbpf: split feature detectors definitions from cached results (diff) | |
| download | kernel-29c302a2e265a356434b005155990a9e766db75d.tar.gz kernel-29c302a2e265a356434b005155990a9e766db75d.zip | |
libbpf: further decouple feature checking logic from bpf_object
Add feat_supported() helper that accepts feature cache instead of
bpf_object. This allows low-level code in bpf.c to not know or care
about higher-level concept of bpf_object, yet it will be able to utilize
custom feature checking in cases where BPF token might influence the
outcome.
Acked-by: John Fastabend <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/lib/bpf/features.c')
0 files changed, 0 insertions, 0 deletions
