]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bpf: Refactor check_pseudo_btf_id
authorAnton Protopopov <aspsk@isovalent.com>
Fri, 13 Dec 2024 13:09:30 +0000 (13:09 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 13 Dec 2024 22:45:58 +0000 (14:45 -0800)
commit76145f7255326761dafb76721a785799d8a00d5f
tree964711c3172c3e989fae405d85efb7310a4214a5
parent928f3221cb141bdb40d5cc6efe5e7b10adecfe5f
bpf: Refactor check_pseudo_btf_id

Introduce a helper to add btfs to the env->used_maps array. Use it
to simplify the check_pseudo_btf_id() function. This new helper will
also be re-used in a consequent patch.

Signed-off-by: Anton Protopopov <aspsk@isovalent.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20241213130934.1087929-4-aspsk@isovalent.com
kernel/bpf/verifier.c