diff options
author | Alexei Starovoitov | 2020-07-21 13:15:01 -0700 |
---|---|---|
committer | Alexei Starovoitov | 2020-07-21 13:26:27 -0700 |
commit | 8fca4f98af0bf112b485fff02779b84d3a069eac (patch) | |
tree | 521419b293f6fd3b2e1d201bbb4ca49f9e9e5ce5 /drivers | |
parent | e4d9c2320716ea0e9ef59f503ddd8f253a642ddd (diff) | |
parent | 951cf368bcb11d6f817709660cf5cd914072c36f (diff) |
Merge branch 'bpf_iter-BTF_ID-at-build-time'
Yonghong Song says:
====================
Commit 5a2798ab32ba
("bpf: Add BTF_ID_LIST/BTF_ID/BTF_ID_UNUSED macros")
implemented a mechanism to compute btf_ids at kernel build
time which can simplify kernel implementation and reduce
runtime overhead by removing in-kernel btf_id calculation.
This patch set tried to use this mechanism to compute
btf_ids for bpf_skc_to_*() helpers and for btf_id_or_null ctx
arguments specified during bpf iterator registration.
Please see individual patch for details.
Changelogs:
v1 -> v2:
- v1 ([1]) is only for bpf_skc_to_*() helpers. This version
expanded it to cover ctx btf_id_or_null arguments
- abandoned the change of "extern u32 name[]" to
"static u32 name[]" for BPF_ID_LIST local "name" definition.
gcc 9 incurred a compilation error.
[1]: https://lore.kernel.org/bpf/20200717184706.3476992-1-yhs@fb.com/T
====================
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions