From: Alexei Starovoitov Date: Sun, 10 Dec 2023 05:37:33 +0000 (-0800) Subject: Merge branch 'add-new-bpf_cpumask_weight-kfunc' X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5bcbdf72df88a351642627d94b93af7c9301b6e2;p=linux.git Merge branch 'add-new-bpf_cpumask_weight-kfunc' David Vernet says: ==================== Add new bpf_cpumask_weight() kfunc It can be useful to query how many bits are set in a cpumask. For example, if you want to perform special logic for the last remaining core that's set in a mask. This logic is already exposed through the main kernel's cpumask header as cpumask_weight(), so it would be useful to add a new bpf_cpumask_weight() kfunc which wraps it and does the same. This patch series was built and tested on top of commit 2146f7fe6e02 ("Merge branch 'allocate-bpf-trampoline-on-bpf_prog_pack'"). ==================== Link: https://lore.kernel.org/r/20231207210843.168466-1-void@manifault.com Signed-off-by: Alexei Starovoitov --- 5bcbdf72df88a351642627d94b93af7c9301b6e2