Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

docs/bpf: Update documentation for BTF_KIND_FUNC

The vlen bits in the BTF type of kind BTF_KIND_FUNC are used to convey the
linkage information for functions. The Linux kernel only supports
linkage values of BTF_FUNC_STATIC and BTF_FUNC_GLOBAL at this time.

Signed-off-by: Indu Bhagat <indu.bhagat@oracle.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/r/20220714223310.1140097-1-indu.bhagat@oracle.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>

authored by

Indu Bhagat and committed by
Alexei Starovoitov
e5e23424 3908fcdd

+5 -1
+5 -1
Documentation/bpf/btf.rst
··· 369 369 * ``name_off``: offset to a valid C identifier 370 370 * ``info.kind_flag``: 0 371 371 * ``info.kind``: BTF_KIND_FUNC 372 - * ``info.vlen``: 0 372 + * ``info.vlen``: linkage information (BTF_FUNC_STATIC, BTF_FUNC_GLOBAL 373 + or BTF_FUNC_EXTERN) 373 374 * ``type``: a BTF_KIND_FUNC_PROTO type 374 375 375 376 No additional type data follow ``btf_type``. ··· 380 379 type. The BTF_KIND_FUNC may in turn be referenced by a func_info in the 381 380 :ref:`BTF_Ext_Section` (ELF) or in the arguments to :ref:`BPF_Prog_Load` 382 381 (ABI). 382 + 383 + Currently, only linkage values of BTF_FUNC_STATIC and BTF_FUNC_GLOBAL are 384 + supported in the kernel. 383 385 384 386 2.2.13 BTF_KIND_FUNC_PROTO 385 387 ~~~~~~~~~~~~~~~~~~~~~~~~~~