Home
last modified time | relevance | path

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

123

/linux-6.1.9/include/linux/
Dbtf.h66 struct btf_type;
113 const struct btf_type *btf_type_id_size(const struct btf *btf,
161 bool btf_member_is_reg_int(const struct btf *btf, const struct btf_type *s,
164 int btf_find_spin_lock(const struct btf *btf, const struct btf_type *t);
165 int btf_find_timer(const struct btf *btf, const struct btf_type *t);
167 const struct btf_type *t);
168 bool btf_type_is_void(const struct btf_type *t);
170 const struct btf_type *btf_type_skip_modifiers(const struct btf *btf,
172 const struct btf_type *btf_type_resolve_ptr(const struct btf *btf,
174 const struct btf_type *btf_type_resolve_func_ptr(const struct btf *btf,
[all …]
Dbpf_local_storage.h138 const struct btf_type *key_type,
139 const struct btf_type *value_type);
Dbpf.h41 struct btf_type;
112 const struct btf_type *key_type,
113 const struct btf_type *value_type);
396 const struct btf_type *key_type,
397 const struct btf_type *value_type);
731 const struct btf_type *t, int off, int size,
937 const struct btf_type *tgt_type;
1157 const struct btf_type *attach_func_proto;
1309 int (*check_member)(const struct btf_type *t,
1311 int (*init_member)(const struct btf_type *t,
[all …]
/linux-6.1.9/tools/lib/bpf/
Dbtf.h25 struct btf_type;
130 LIBBPF_API const struct btf_type *btf__type_by_id(const struct btf *btf,
152 const struct btf_type *src_type);
320 static inline __u16 btf_kind(const struct btf_type *t) in btf_kind()
325 static inline __u16 btf_vlen(const struct btf_type *t) in btf_vlen()
330 static inline bool btf_kflag(const struct btf_type *t) in btf_kflag()
335 static inline bool btf_is_void(const struct btf_type *t) in btf_is_void()
340 static inline bool btf_is_int(const struct btf_type *t) in btf_is_int()
345 static inline bool btf_is_ptr(const struct btf_type *t) in btf_is_ptr()
350 static inline bool btf_is_array(const struct btf_type *t) in btf_is_array()
[all …]
Dbtf_dump.c313 const struct btf_type *t; in btf_dump_mark_referenced()
482 const struct btf_type *t; in btf_dump_order_type()
616 const struct btf_type *t);
619 const struct btf_type *t);
621 const struct btf_type *t, int lvl);
624 const struct btf_type *t);
626 const struct btf_type *t, int lvl);
629 const struct btf_type *t);
632 const struct btf_type *t, int lvl);
653 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;
288 static int btf_type_size(const struct btf_type *t) in btf_type_size()
290 const int base_size = sizeof(struct btf_type); in btf_type_size()
329 static void btf_bswap_type_base(struct btf_type *t) in btf_bswap_type_base()
336 static int btf_bswap_type_rest(struct btf_type *t) in btf_bswap_type_rest()
420 while (next_type + sizeof(struct btf_type) <= end_type) { in btf_parse_type_sec()
462 struct btf_type *btf_type_by_id(const struct btf *btf, __u32 type_id) in btf_type_by_id()
471 const struct btf_type *btf__type_by_id(const struct btf *btf, __u32 type_id) in btf__type_by_id()
493 const struct btf_type *t; in determine_ptr_size()
592 static bool btf_type_is_void(const struct btf_type *t) in btf_type_is_void()
[all …]
Dlibbpf_internal.h216 struct btf_type;
218 struct btf_type *btf_type_by_id(const struct btf *btf, __u32 type_id);
219 const char *btf_kind_str(const struct btf_type *t);
220 const struct btf_type *skip_mods_and_typedefs(const struct btf *btf, __u32 id, __u32 *res_id);
222 static inline enum btf_func_linkage btf_func_linkage(const struct btf_type *t) in btf_func_linkage()
263 const struct btf_type *def_t, bool strict,
475 int btf_type_visit_type_ids(struct btf_type *t, type_id_visit_fn visit, void *ctx);
476 int btf_type_visit_str_offs(struct btf_type *t, str_off_visit_fn visit, void *ctx);
Drelo_core.c11 static const char *btf_kind_str(const struct btf_type *t) in btf_kind_str()
21 static const struct btf_type *
34 const struct btf_type *t; in btf__resolve_size()
75 const struct btf_type *t; in is_flex_arr()
149 const struct btf_type *local_type, *targ_type; in __bpf_core_types_are_compat()
269 const struct btf_type *t; in bpf_core_parse_spec()
417 const struct btf_type *local_type, *targ_type; in bpf_core_fields_are_compat()
488 const struct btf_type *local_type, *targ_type; in bpf_core_match_member()
561 const struct btf_type *targ_type; in bpf_core_spec_match()
685 const struct btf_type *t; in bpf_core_calc_field_relo()
[all …]
Dlinker.c940 struct btf_type *t; in linker_sanity_check_btf()
1290 const struct btf_type *t1, *t2; in glob_sym_btf_matches()
1574 const struct btf_type *t; in glob_map_defs_match()
1612 const struct btf_type *src_t; in glob_syms_match()
1640 static bool btf_is_non_static(const struct btf_type *t) in btf_is_non_static()
1650 const struct btf_type *t; in find_glob_sym_btf()
1733 struct btf_type *dst_t = btf_type_by_id(dst_btf, dst_id); in complete_extern_btf_info()
1734 struct btf_type *src_t = btf_type_by_id(src_btf, src_id); in complete_extern_btf_info()
1844 const struct btf_type *t; in linker_append_elf_sym()
2137 struct btf_type *t; in linker_fixup_btf()
[all …]
/linux-6.1.9/tools/bpf/bpftool/
Dgen.c127 const struct btf_type *sec, in codegen_datasec_def()
144 const struct btf_type *var = btf__type_by_id(btf, sec_var->type); in codegen_datasec_def()
212 static const struct btf_type *find_type_for_map(struct btf *btf, const char *map_ident) in find_type_for_map()
218 const struct btf_type *t = btf__type_by_id(btf, i); in find_type_for_map()
250 const struct btf_type *sec; in codegen_datasecs()
290 const struct btf_type *v) in btf_is_ptr_to_func_proto()
300 const struct btf_type *sec, *var; in codegen_subskel_datasecs()
474 const struct btf_type *sec; in codegen_asserts()
504 const struct btf_type *var = btf__type_by_id(btf, sec_var->type); in codegen_asserts()
1290 const struct btf_type *map_type, *var_type; in do_subskeleton()
[all …]
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()
35 const struct btf_type *func_type; in dump_prog_id_as_func_ptr()
108 const struct btf_type *t, in btf_dumper_ptr()
112 const struct btf_type *ptr_type; in btf_dumper_ptr()
148 const struct btf_type *t, in btf_dumper_enum()
186 const struct btf_type *t, in btf_dumper_enum64()
214 const struct btf_type *elem_type; in is_str_array()
250 const struct btf_type *t = btf__type_by_id(d->btf, type_id); in btf_dumper_array()
[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()
/linux-6.1.9/kernel/bpf/
Dbtf.c226 struct btf_type **types;
255 const struct btf_type *t;
315 const char *btf_type_str(const struct btf_type *t) in btf_type_str()
393 const struct btf_type *type;
407 const struct btf_type *t,
412 const struct btf_type *struct_type,
414 const struct btf_type *member_type);
416 const struct btf_type *struct_type,
418 const struct btf_type *member_type);
420 const struct btf_type *t);
[all …]
Dbpf_struct_ops.c102 static const struct btf_type *module_type;
109 const struct btf_type *t; in bpf_struct_ops_init()
160 const struct btf_type *func_proto; in bpf_struct_ops_init()
282 const struct btf_type *t = st_map->st_ops->type; in bpf_struct_ops_map_put_progs()
293 static int check_zero_holes(const struct btf_type *t, void *data) in check_zero_holes()
297 const struct btf_type *mtype; in check_zero_holes()
359 const struct btf_type *t = st_ops->type; in bpf_struct_ops_map_update_elem()
406 const struct btf_type *mtype, *ptype; in bpf_struct_ops_map_update_elem()
599 const struct btf_type *t, *vt; in bpf_struct_ops_map_alloc()
Dbloom_filter.c189 const struct btf_type *key_type, in bloom_map_check_btf()
190 const struct btf_type *value_type) in bloom_map_check_btf()
/linux-6.1.9/Documentation/bpf/
Dbtf.rst97 struct btf_type {
122 ``name_off`` in ``struct btf_type`` specifies the offset in the string table.
128 ``struct btf_type`` encoding requirement:
135 ``btf_type`` is followed by a ``u32`` with the following bits arrangement::
153 The ``btf_type.size * 8`` must be equal to or greater than ``BTF_INT_BITS()``
180 ``struct btf_type`` encoding requirement:
187 No additional type data follow ``btf_type``.
192 ``struct btf_type`` encoding requirement:
199 ``btf_type`` is followed by one ``struct btf_array``::
237 ``struct btf_type`` encoding requirement:
[all …]
/linux-6.1.9/net/ipv4/
Dbpf_tcp_ca.c21 static const struct btf_type *tcp_sock_type;
73 const struct btf_type *t, int off, in bpf_tcp_ca_btf_struct_access()
150 const struct btf_type *t; in prog_ops_moff()
219 static int bpf_tcp_ca_init_member(const struct btf_type *t, in bpf_tcp_ca_init_member()
249 static int bpf_tcp_ca_check_member(const struct btf_type *t, in bpf_tcp_ca_check_member()
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dlibbpf_str.c24 const struct btf_type *t; in test_libbpf_bpf_attach_type_str()
69 const struct btf_type *t; in test_libbpf_bpf_link_type_str()
114 const struct btf_type *t; in test_libbpf_bpf_map_type_str()
156 const struct btf_type *t; in test_libbpf_bpf_prog_type_str()
Dlibbpf_probes.c10 const struct btf_type *t; in test_libbpf_probe_prog_types()
48 const struct btf_type *t; in test_libbpf_probe_map_types()
/linux-6.1.9/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-6.1.9/net/bpf/
Dbpf_dummy_struct_ops.c81 const struct btf_type *func_proto; in bpf_struct_ops_test_run()
160 const struct btf_type *t, int off, in bpf_dummy_ops_btf_struct_access()
165 const struct btf_type *state; in bpf_dummy_ops_btf_struct_access()
193 static int bpf_dummy_init_member(const struct btf_type *t, in bpf_dummy_init_member()
/linux-6.1.9/net/netfilter/
Dnf_conntrack_bpf.c195 const struct btf_type *t, int off, in BTF_ID()
200 const struct btf_type *ncit; in BTF_ID()
201 const struct btf_type *nct; in BTF_ID()
/linux-6.1.9/tools/testing/selftests/bpf/
Dbtf_helpers.c67 static const char *btf_func_linkage_str(const struct btf_type *t) in btf_func_linkage_str()
90 const struct btf_type *t; in fprintf_btf_type_raw()
/linux-6.1.9/include/uapi/linux/
Dbtf.h31 struct btf_type { struct
/linux-6.1.9/tools/include/uapi/linux/
Dbtf.h31 struct btf_type { struct

123