Merge branch 'add-new-bpf_cpumask_weight-kfunc'
authorAlexei Starovoitov <ast@kernel.org>
Sun, 10 Dec 2023 05:37:33 +0000 (21:37 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 10 Dec 2023 05:37:33 +0000 (21:37 -0800)
commit5bcbdf72df88a351642627d94b93af7c9301b6e2
tree21a2ba3658473f297c164c78c15ef1ce6eedec20
parent5181dc08f79583c6dead80208137a97e68ff07b0
parent88f6047191e69bdd02cf1b9b5b514f7e514e8b86
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 <ast@kernel.org>