bpf: Add support for kfunc set with common btf_ids
authorYonghong Song <yhs@fb.com>
Sun, 20 Nov 2022 19:54:26 +0000 (11:54 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 20 Nov 2022 23:43:37 +0000 (15:43 -0800)
commitcfe1456440c8feaf6558577a400745d774418379
tree14bb9ffb56bb894115337ecf83ca146379704cd4
parente181d3f143f7957a73c8365829249d8084602606
bpf: Add support for kfunc set with common btf_ids

Later on, we will introduce kfuncs bpf_cast_to_kern_ctx() and
bpf_rdonly_cast() which apply to all program types. Currently kfunc set
only supports individual prog types. This patch added support for kfunc
applying to all program types.

Signed-off-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/r/20221120195426.3113828-1-yhs@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/btf.c
kernel/bpf/helpers.c