BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next] docs/bpf: Update documentation for BTF_KIND_FUNC
@ 2022-07-13 22:25 Indu Bhagat
  2022-07-13 23:52 ` sdf
  2022-07-14  6:00 ` Andrii Nakryiko
  0 siblings, 2 replies; 5+ messages in thread
From: Indu Bhagat @ 2022-07-13 22:25 UTC (permalink / raw)
  To: bpf; +Cc: yhs, Indu Bhagat

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@oracle.com>
---
 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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-07-14  7:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-13 22:25 [PATCH bpf-next] docs/bpf: Update documentation for BTF_KIND_FUNC Indu Bhagat
2022-07-13 23:52 ` sdf
2022-07-14  6:00 ` Andrii Nakryiko
2022-07-14  6:42   ` Yonghong Song
2022-07-14  7:10     ` Andrii Nakryiko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox