Home
last modified time | relevance | path

Searched refs:btf_type (Results 1 – 25 of 44) sorted by relevance

12

/Linux-v5.15/include/linux/
Dbtf.h16 struct btf_type;
50 const struct btf_type *btf_type_id_size(const struct btf *btf,
98 bool btf_member_is_reg_int(const struct btf *btf, const struct btf_type *s,
101 int btf_find_spin_lock(const struct btf *btf, const struct btf_type *t);
102 int btf_find_timer(const struct btf *btf, const struct btf_type *t);
103 bool btf_type_is_void(const struct btf_type *t);
105 const struct btf_type *btf_type_skip_modifiers(const struct btf *btf,
107 const struct btf_type *btf_type_resolve_ptr(const struct btf *btf,
109 const struct btf_type *btf_type_resolve_func_ptr(const struct btf *btf,
111 const struct btf_type *
[all …]
Dbpf_local_storage.h134 const struct btf_type *key_type,
135 const struct btf_type *value_type);
Dbpf.h36 struct btf_type;
101 const struct btf_type *key_type,
102 const struct btf_type *value_type);
289 const struct btf_type *key_type,
290 const struct btf_type *value_type);
511 const struct btf_type *t, int off, int size,
691 const struct btf_type *tgt_type;
871 const struct btf_type *attach_func_proto;
978 int (*check_member)(const struct btf_type *t,
980 int (*init_member)(const struct btf_type *t,
[all …]
/Linux-v5.15/tools/lib/bpf/
Dbtf.h24 struct btf_type;
64 LIBBPF_API const struct btf_type *btf__type_by_id(const struct btf *btf,
103 const struct btf_type *src_type);
215 static inline __u16 btf_kind(const struct btf_type *t) in btf_kind()
220 static inline __u16 btf_vlen(const struct btf_type *t) in btf_vlen()
225 static inline bool btf_kflag(const struct btf_type *t) in btf_kflag()
230 static inline bool btf_is_void(const struct btf_type *t) in btf_is_void()
235 static inline bool btf_is_int(const struct btf_type *t) in btf_is_int()
240 static inline bool btf_is_ptr(const struct btf_type *t) in btf_is_ptr()
245 static inline bool btf_is_array(const struct btf_type *t) in btf_is_array()
[all …]
Dbtf_dump.c298 const struct btf_type *t; in btf_dump_mark_referenced()
464 const struct btf_type *t; in btf_dump_order_type()
595 const struct btf_type *t);
598 const struct btf_type *t);
600 const struct btf_type *t, int lvl);
603 const struct btf_type *t);
605 const struct btf_type *t, int lvl);
608 const struct btf_type *t);
611 const struct btf_type *t, int lvl);
632 const struct btf_type *t = btf__type_by_id(d->btf, id); in btf_dump_is_blacklisted()
[all …]
Dbtf.c29 static struct btf_type btf_void;
277 static int btf_type_size(const struct btf_type *t) in btf_type_size()
279 const int base_size = sizeof(struct btf_type); in btf_type_size()
313 static void btf_bswap_type_base(struct btf_type *t) in btf_bswap_type_base()
320 static int btf_bswap_type_rest(struct btf_type *t) in btf_bswap_type_rest()
392 while (next_type + sizeof(struct btf_type) <= end_type) { in btf_parse_type_sec()
434 struct btf_type *btf_type_by_id(struct btf *btf, __u32 type_id) in btf_type_by_id()
443 const struct btf_type *btf__type_by_id(const struct btf *btf, __u32 type_id) in btf__type_by_id()
452 const struct btf_type *t; in determine_ptr_size()
550 static bool btf_type_is_void(const struct btf_type *t) in btf_type_is_void()
[all …]
Dlibbpf_internal.h147 struct btf_type;
149 struct btf_type *btf_type_by_id(struct btf *btf, __u32 type_id);
150 const char *btf_kind_str(const struct btf_type *t);
151 const struct btf_type *skip_mods_and_typedefs(const struct btf *btf, __u32 id, __u32 *res_id);
153 static inline enum btf_func_linkage btf_func_linkage(const struct btf_type *t) in btf_func_linkage()
192 const struct btf_type *def_t, bool strict,
385 int btf_type_visit_type_ids(struct btf_type *t, type_id_visit_fn visit, void *ctx);
386 int btf_type_visit_str_offs(struct btf_type *t, str_off_visit_fn visit, void *ctx);
Drelo_core.c47 const struct btf_type *t; in is_flex_arr()
161 const struct btf_type *t; in bpf_core_parse_spec()
306 const struct btf_type *local_type, *targ_type; in bpf_core_fields_are_compat()
378 const struct btf_type *local_type, *targ_type; in bpf_core_match_member()
451 const struct btf_type *targ_type; in bpf_core_spec_match()
565 const struct btf_type *t; in bpf_core_calc_field_relo()
568 const struct btf_type *mt; in bpf_core_calc_field_relo()
722 const struct btf_type *t; in bpf_core_calc_enumval_relo()
806 const struct btf_type *orig_t, *new_t; in bpf_core_calc_relo()
1050 const struct btf_type *t; in bpf_core_dump_spec()
[all …]
Drelo_core.h80 const struct btf_type *t;
Dlinker.c945 struct btf_type *t; in linker_sanity_check_btf()
1295 const struct btf_type *t1, *t2; in glob_sym_btf_matches()
1577 const struct btf_type *t; in glob_map_defs_match()
1615 const struct btf_type *src_t; in glob_syms_match()
1643 static bool btf_is_non_static(const struct btf_type *t) in btf_is_non_static()
1653 const struct btf_type *t; in find_glob_sym_btf()
1736 struct btf_type *dst_t = btf_type_by_id(dst_btf, dst_id); in complete_extern_btf_info()
1737 struct btf_type *src_t = btf_type_by_id(src_btf, src_id); in complete_extern_btf_info()
1847 const struct btf_type *t; in linker_append_elf_sym()
2137 struct btf_type *t; in linker_fixup_btf()
[all …]
Dlibbpf.c315 const struct btf_type *type;
758 find_member_by_offset(const struct btf_type *t, __u32 bit_offset) in find_member_by_offset()
772 find_member_by_name(const struct btf *btf, const struct btf_type *t, in find_member_by_name()
792 const struct btf_type **type, __u32 *type_id, in find_struct_ops_kern_types()
793 const struct btf_type **vtype, __u32 *vtype_id, in find_struct_ops_kern_types()
796 const struct btf_type *kern_type, *kern_vtype; in find_struct_ops_kern_types()
860 const struct btf_type *type, *kern_type, *kern_vtype; in bpf_map__init_kern_struct_ops()
893 const struct btf_type *mtype, *kern_mtype; in bpf_map__init_kern_struct_ops()
1008 const struct btf_type *type, *datasec; in bpf_object__init_struct_ops_maps()
1939 const struct btf_type *
[all …]
/Linux-v5.15/kernel/bpf/
Dbtf.c202 struct btf_type **types;
229 const struct btf_type *t;
286 const char *btf_type_str(const struct btf_type *t) in btf_type_str()
364 const struct btf_type *type;
378 const struct btf_type *t,
383 const struct btf_type *struct_type,
385 const struct btf_type *member_type);
387 const struct btf_type *struct_type,
389 const struct btf_type *member_type);
391 const struct btf_type *t);
[all …]
Dbpf_struct_ops.c98 static const struct btf_type *module_type;
105 const struct btf_type *t; in bpf_struct_ops_init()
156 const struct btf_type *func_proto; in bpf_struct_ops_init()
278 const struct btf_type *t = st_map->st_ops->type; in bpf_struct_ops_map_put_progs()
289 static int check_zero_holes(const struct btf_type *t, void *data) in check_zero_holes()
293 const struct btf_type *mtype; in check_zero_holes()
322 const struct btf_type *t = st_ops->type; in bpf_struct_ops_map_update_elem()
368 const struct btf_type *mtype, *ptype; in bpf_struct_ops_map_update_elem()
557 const struct btf_type *t, *vt; in bpf_struct_ops_map_alloc()
/Linux-v5.15/tools/bpf/bpftool/
Dbtf_dumper.c28 const struct btf_type *func_proto,
29 const struct btf_type *func, int pos, int size);
32 const struct btf_type *func_proto, in dump_prog_id_as_func_ptr()
36 const struct btf_type *func_type; in dump_prog_id_as_func_ptr()
100 const struct btf_type *t, in btf_dumper_ptr()
104 const struct btf_type *ptr_type; in btf_dumper_ptr()
140 const struct btf_type *t, in btf_dumper_enum()
180 const struct btf_type *elem_type; in is_str_array()
216 const struct btf_type *t = btf__type_by_id(d->btf, type_id); in btf_dumper_array()
361 static int btf_dumper_int(const struct btf_type *t, __u8 bit_offset, in btf_dumper_int()
[all …]
Dstruct_ops.c19 static const struct btf_type *map_info_type;
44 const struct btf_type *t; in get_kern_struct_ops_name()
356 const struct btf_type *struct_ops_type; in __do_dump()
Dgen.c98 const struct btf_type *sec, in codegen_datasec_def()
125 const struct btf_type *var = btf__type_by_id(btf, sec_var->type); in codegen_datasec_def()
205 const struct btf_type *t = btf__type_by_id(btf, i); in codegen_datasecs()
Dbtf.c82 static const char *btf_func_linkage_str(const struct btf_type *t) in btf_func_linkage_str()
109 const struct btf_type *t) in dump_btf_type()
308 const struct btf_type *vt; in dump_btf_type()
365 const struct btf_type *t; in dump_btf_raw()
/Linux-v5.15/Documentation/bpf/
Dbtf.rst94 struct btf_type {
119 ``name_off`` in ``struct btf_type`` specifies the offset in the string table.
125 ``struct btf_type`` encoding requirement:
132 ``btf_type`` is followed by a ``u32`` with the following bits arrangement::
150 The ``btf_type.size * 8`` must be equal to or greater than ``BTF_INT_BITS()``
177 ``struct btf_type`` encoding requirement:
184 No additional type data follow ``btf_type``.
189 ``struct btf_type`` encoding requirement:
196 ``btf_type`` is followed by one ``struct btf_array``::
234 ``struct btf_type`` encoding requirement:
[all …]
/Linux-v5.15/kernel/bpf/preload/iterators/
Diterators.bpf.c26 struct btf_type { struct
36 struct btf_type **types; argument
61 struct btf_type **types, *t; in get_name()
/Linux-v5.15/net/ipv4/
Dbpf_tcp_ca.c32 static const struct btf_type *tcp_sock_type;
103 const struct btf_type *t, int off, in bpf_tcp_ca_btf_struct_access()
172 const struct btf_type *t; in prog_ops_moff()
270 static int bpf_tcp_ca_init_member(const struct btf_type *t, in bpf_tcp_ca_init_member()
309 static int bpf_tcp_ca_check_member(const struct btf_type *t, in bpf_tcp_ca_check_member()
/Linux-v5.15/tools/testing/selftests/bpf/
Dbtf_helpers.c64 static const char *btf_func_linkage_str(const struct btf_type *t) in btf_func_linkage_str()
87 const struct btf_type *t; in fprintf_btf_type_raw()
/Linux-v5.15/include/uapi/linux/
Dbtf.h31 struct btf_type { struct
/Linux-v5.15/tools/include/uapi/linux/
Dbtf.h31 struct btf_type { struct
/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/
Dbtf_split.c18 const struct btf_type *t; in test_btf_split()
Dbtf_endian.c20 const struct btf_type *t; in test_btf_endian()

12