Re: [PATCH v2 bpf-next] bpf: add btf_type_is_i{32,64} helpers

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

 



On Wed, 2025-06-25 at 15:16 +0000, Anton Protopopov wrote:
> There are places in BPF code which check if a BTF type is an integer
> of particular size. This code can be made simpler by using helpers.
> Add new btf_type_is_i{32,64} helpers, and simplify code in a few
> files. (Suggested by Eduard for a patch which copy-pasted such a
> check [1].)
> 
>   v1 -> v2:
>     * export less generic helpers (Eduard)
>     * make subject less generic than in [v1] (Eduard)
> 
> [1] https://lore.kernel.org/bpf/7edb47e73baa46705119a23c6bf4af26517a640f.camel@xxxxxxxxx/
> [v1] https://lore.kernel.org/bpf/20250624193655.733050-1-a.s.protopopov@xxxxxxxxx/
> 
> Suggested-by: Eduard Zingerman <eddyz87@xxxxxxxxx>
> Signed-off-by: Anton Protopopov <a.s.protopopov@xxxxxxxxx>
> ---

Acked-by: Eduard Zingerman <eddyz87@xxxxxxxxx>

[...]





[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