From: Andrii Nakryiko Date: Fri, 17 Mar 2023 22:44:27 +0000 (-0700) Subject: Merge branch 'bpf: Add detection of kfuncs.' X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6cae5a7106e272e7908a1facdf519a307f93872d;p=linux.git Merge branch 'bpf: Add detection of kfuncs.' Alexei Starovoitov says: ==================== From: Alexei Starovoitov Allow BPF programs detect at load time whether particular kfunc exists. Patch 1: Allow ld_imm64 to point to kfunc in the kernel. Patch 2: Fix relocation of kfunc in ld_imm64 insn when kfunc is in kernel module. Patch 3: Introduce bpf_ksym_exists() macro. Patch 4: selftest. NOTE: detection of kfuncs from light skeleton is not supported yet. ==================== Signed-off-by: Andrii Nakryiko --- 6cae5a7106e272e7908a1facdf519a307f93872d