From: Alexei Starovoitov Date: Tue, 21 Jul 2020 20:15:01 +0000 (-0700) Subject: Merge branch 'bpf_iter-BTF_ID-at-build-time' X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8fca4f98af0bf112b485fff02779b84d3a069eac;p=linux.git 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 --- 8fca4f98af0bf112b485fff02779b84d3a069eac