On 07/13, Indu Bhagat wrote:
The vlen bits in the BTF type of kind BTF_KIND_FUNC are used to convey the linkage information for functions.
Signed-off-by: Indu Bhagat <indu.bhagat@xxxxxxxxxx>
Reviewed-by: Stanislav Fomichev <sdf@xxxxxxxxxx> Judging by: static inline u16 btf_func_linkage(const struct btf_type *t) { return BTF_INFO_VLEN(t->info); }
--- Documentation/bpf/btf.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/bpf/btf.rst b/Documentation/bpf/btf.rst index f49aeef62d0c..b3a9d5ac882c 100644 --- a/Documentation/bpf/btf.rst +++ b/Documentation/bpf/btf.rst @@ -369,7 +369,7 @@ No additional type data follow ``btf_type``. * ``name_off``: offset to a valid C identifier * ``info.kind_flag``: 0 * ``info.kind``: BTF_KIND_FUNC - * ``info.vlen``: 0 + * ``info.vlen``: linkage information (static=0, global=1) * ``type``: a BTF_KIND_FUNC_PROTO type
No additional type data follow ``btf_type``. -- 2.31.1