Re: [PATCH bpf-next v2 0/5] bpf: compute btf_ids at build time for btf_iter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 20, 2020 at 09:33:58AM -0700, Yonghong Song wrote:
> 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@xxxxxx/T

Applied, Thanks



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux