• Home
  • Raw
  • Download

Lines Matching refs:info

8 BTF (BPF Type Format) is the metadata format which encodes the debug info
10 types. The BTF was later extended to include function info for defined
11 subroutines, and line info for source/line information.
13 The debug info is used for map pretty print, function signature, etc. The
15 info helps generate source annotated translated byte code, jited code and
23 verifies the BTF info before using it. The ELF file format is a user space
27 debug info (mostly types related) referenced by the bpf program. These two
88 Note that the type section encodes debug info, not just pure types.
95 /* "info" bits arrangement
103 __u32 info;
126 * ``info.kind_flag``: 0
127 * ``info.kind``: BTF_KIND_INT
128 * ``info.vlen``: 0
178 * ``info.kind_flag``: 0
179 * ``info.kind``: BTF_KIND_PTR
180 * ``info.vlen``: 0
190 * ``info.kind_flag``: 0
191 * ``info.kind``: BTF_KIND_ARRAY
192 * ``info.vlen``: 0
235 * ``info.kind_flag``: 0 or 1
236 * ``info.kind``: BTF_KIND_STRUCT or BTF_KIND_UNION
237 * ``info.vlen``: the number of struct/union members
238 * ``info.size``: the size of the struct/union in bytes
240 ``btf_type`` is followed by ``info.vlen`` number of ``struct btf_member``.::
253 If the type info ``kind_flag`` is not set, the offset contains only bit offset
281 * ``info.kind_flag``: 0
282 * ``info.kind``: BTF_KIND_ENUM
283 * ``info.vlen``: number of enum values
286 ``btf_type`` is followed by ``info.vlen`` number of ``struct btf_enum``.::
302 * ``info.kind_flag``: 0 for struct, 1 for union
303 * ``info.kind``: BTF_KIND_FWD
304 * ``info.vlen``: 0
314 * ``info.kind_flag``: 0
315 * ``info.kind``: BTF_KIND_TYPEDEF
316 * ``info.vlen``: 0
326 * ``info.kind_flag``: 0
327 * ``info.kind``: BTF_KIND_VOLATILE
328 * ``info.vlen``: 0
338 * ``info.kind_flag``: 0
339 * ``info.kind``: BTF_KIND_CONST
340 * ``info.vlen``: 0
350 * ``info.kind_flag``: 0
351 * ``info.kind``: BTF_KIND_RESTRICT
352 * ``info.vlen``: 0
362 * ``info.kind_flag``: 0
363 * ``info.kind``: BTF_KIND_FUNC
364 * ``info.vlen``: 0
380 * ``info.kind_flag``: 0
381 * ``info.kind``: BTF_KIND_FUNC_PROTO
382 * ``info.vlen``: # of parameters
385 ``btf_type`` is followed by ``info.vlen`` number of ``struct btf_param``.::
405 * ``info.kind_flag``: 0
406 * ``info.kind``: BTF_KIND_VAR
407 * ``info.vlen``: 0
436 * ``info.kind_flag``: 0
437 * ``info.kind``: BTF_KIND_DATASEC
438 * ``info.vlen``: # of variables
442 ``btf_type`` is followed by ``info.vlen`` number of ``struct btf_var_secinfo``.::
460 * BPF_MAP_CREATE: map creation with btf key and value type info.
461 * BPF_PROG_LOAD: prog load with btf function and line info.
464 and other btf related info are returned.
495 pretty print types, dump func signatures and line info, etc.
544 __aligned_u64 func_info; /* func info */
547 __aligned_u64 line_info; /* line info */
604 ``bpf_prog_info`` returns ``btf_id``, func_info, and line info for translated
617 func signatures and line info, along with byte/jit codes.