/openbmc/linux/include/linux/ |
H A D | btf.h | 97 struct btf_type; 156 const struct btf_type *btf_type_id_size(const struct btf *btf, 204 bool btf_member_is_reg_int(const struct btf *btf, const struct btf_type *s, 207 struct btf_record *btf_parse_fields(const struct btf *btf, const struct btf_type *t, 210 bool btf_type_is_void(const struct btf_type *t); 213 const struct btf_type *btf_type_skip_modifiers(const struct btf *btf, 215 const struct btf_type *btf_type_resolve_ptr(const struct btf *btf, 217 const struct btf_type *btf_type_resolve_func_ptr(const struct btf *btf, 219 const struct btf_type * 220 btf_resolve_size(const struct btf *btf, const struct btf_type *type, [all …]
|
H A D | bpf_local_storage.h | 145 const struct btf_type *key_type, 146 const struct btf_type *value_type);
|
H A D | bpf.h | 42 struct btf_type; 120 const struct btf_type *key_type, 121 const struct btf_type *value_type); 291 const struct btf_type *attach_func_proto; 567 const struct btf_type *key_type, 568 const struct btf_type *value_type); 1182 const struct btf_type *tgt_type; 1434 const struct btf_type *attach_func_proto; 1650 int (*check_member)(const struct btf_type *t, 1653 int (*init_member)(const struct btf_type *t, [all …]
|
/openbmc/linux/tools/lib/bpf/ |
H A D | btf.h | 25 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 …]
|
H A D | btf_dump.c | 314 const struct btf_type *t; in btf_dump_mark_referenced() 483 const struct btf_type *t; in btf_dump_order_type() 617 const struct btf_type *t); 620 const struct btf_type *t); 622 const struct btf_type *t, int lvl); 625 const struct btf_type *t); 627 const struct btf_type *t, int lvl); 630 const struct btf_type *t); 633 const struct btf_type *t, int lvl); 654 const struct btf_type *t = btf__type_by_id(d->btf, id); in btf_dump_is_blacklisted() [all …]
|
H A D | btf.c | 29 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 …]
|
H A D | relo_core.c | 11 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 …]
|
H A D | libbpf_internal.h | 231 struct btf_type; 233 struct btf_type *btf_type_by_id(const struct btf *btf, __u32 type_id); 234 const char *btf_kind_str(const struct btf_type *t); 235 const struct btf_type *skip_mods_and_typedefs(const struct btf *btf, __u32 id, __u32 *res_id); 237 static inline enum btf_func_linkage btf_func_linkage(const struct btf_type *t) in btf_func_linkage() 278 const struct btf_type *def_t, bool strict, 492 int btf_type_visit_type_ids(struct btf_type *t, type_id_visit_fn visit, void *ctx); 493 int btf_type_visit_str_offs(struct btf_type *t, str_off_visit_fn visit, void *ctx);
|
H A D | linker.c | 936 struct btf_type *t; in linker_sanity_check_btf() 1298 const struct btf_type *t1, *t2; in glob_sym_btf_matches() 1582 const struct btf_type *t; in glob_map_defs_match() 1620 const struct btf_type *src_t; in glob_syms_match() 1648 static bool btf_is_non_static(const struct btf_type *t) in btf_is_non_static() 1658 const struct btf_type *t; in find_glob_sym_btf() 1741 struct btf_type *dst_t = btf_type_by_id(dst_btf, dst_id); in complete_extern_btf_info() 1742 struct btf_type *src_t = btf_type_by_id(src_btf, src_id); in complete_extern_btf_info() 1852 const struct btf_type *t; in linker_append_elf_sym() 2138 struct btf_type *t; in linker_fixup_btf() [all …]
|
/openbmc/linux/tools/bpf/bpftool/ |
H A D | gen.c | 127 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() 289 const struct btf_type *v) in btf_is_ptr_to_func_proto() 299 const struct btf_type *sec, *var; in codegen_subskel_datasecs() 473 const struct btf_type *sec; in codegen_asserts() 503 const struct btf_type *var = btf__type_by_id(btf, sec_var->type); in codegen_asserts() 1291 const struct btf_type *map_type, *var_type; in do_subskeleton() [all …]
|
H A D | btf_dumper.c | 28 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 …]
|
H A D | struct_ops.c | 19 static const struct btf_type *map_info_type; 44 const struct btf_type *t; in get_kern_struct_ops_name() 354 const struct btf_type *struct_ops_type; in __do_dump()
|
/openbmc/linux/kernel/bpf/ |
H A D | btf.c | 246 struct btf_type **types; 276 const struct btf_type *t; 336 const char *btf_type_str(const struct btf_type *t) in btf_type_str() 420 const struct btf_type *type; 434 const struct btf_type *t, 439 const struct btf_type *struct_type, 441 const struct btf_type *member_type); 443 const struct btf_type *struct_type, 445 const struct btf_type *member_type); 447 const struct btf_type *t); [all …]
|
H A D | bpf_struct_ops.c | 111 static const struct btf_type *module_type; 118 const struct btf_type *t; in bpf_struct_ops_init() 169 const struct btf_type *func_proto; in bpf_struct_ops_init() 299 const struct btf_type *t = st_map->st_ops->type; in bpf_struct_ops_map_put_progs() 310 static int check_zero_holes(const struct btf_type *t, void *data) in check_zero_holes() 314 const struct btf_type *mtype; in check_zero_holes() 376 const struct btf_type *t = st_ops->type; in bpf_struct_ops_map_update_elem() 423 const struct btf_type *mtype, *ptype; in bpf_struct_ops_map_update_elem() 658 const struct btf_type *t, *vt; in bpf_struct_ops_map_alloc() 705 const struct btf_type *vt = st_ops->value_type; in bpf_struct_ops_map_mem_usage()
|
H A D | bloom_filter.c | 185 const struct btf_type *key_type, in bloom_map_check_btf() 186 const struct btf_type *value_type) in bloom_map_check_btf()
|
/openbmc/linux/kernel/trace/ |
H A D | trace_btf.h | 4 const struct btf_type *btf_find_func_proto(const char *func_name, 6 const struct btf_param *btf_get_func_param(const struct btf_type *func_proto, 9 const struct btf_type *type,
|
H A D | trace_btf.c | 13 const struct btf_type *btf_find_func_proto(const char *func_name, struct btf **btf_p) in btf_find_func_proto() 15 const struct btf_type *t; in btf_find_func_proto() 43 const struct btf_param *btf_get_func_param(const struct btf_type *func_proto, s32 *nr) in btf_get_func_param() 71 const struct btf_type *type, in btf_find_struct_member()
|
/openbmc/linux/Documentation/bpf/ |
H A D | btf.rst | 97 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 …]
|
/openbmc/linux/net/bpf/ |
H A D | bpf_dummy_struct_ops.c | 81 const struct btf_type *func_proto; in bpf_struct_ops_test_run() 157 static int bpf_dummy_ops_check_member(const struct btf_type *t, in bpf_dummy_ops_check_member() 178 const struct btf_type *state; in bpf_dummy_ops_btf_struct_access() 179 const struct btf_type *t; in bpf_dummy_ops_btf_struct_access() 207 static int bpf_dummy_init_member(const struct btf_type *t, in bpf_dummy_init_member()
|
/openbmc/linux/net/ipv4/ |
H A D | bpf_tcp_ca.c | 21 static const struct btf_type *tcp_sock_type; 75 const struct btf_type *t; in bpf_tcp_ca_btf_struct_access() 148 const struct btf_type *t; in prog_ops_moff() 217 static int bpf_tcp_ca_init_member(const struct btf_type *t, in bpf_tcp_ca_init_member() 245 static int bpf_tcp_ca_check_member(const struct btf_type *t, in bpf_tcp_ca_check_member()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | libbpf_str.c | 24 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() 164 const struct btf_type *t; in test_libbpf_bpf_prog_type_str()
|
H A D | libbpf_probes.c | 10 const struct btf_type *t; in test_libbpf_probe_prog_types() 48 const struct btf_type *t; in test_libbpf_probe_map_types()
|
/openbmc/linux/kernel/bpf/preload/iterators/ |
H A D | iterators.bpf.c | 26 struct btf_type { struct 36 struct btf_type **types; argument 61 struct btf_type **types, *t; in get_name()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | btf_helpers.c | 67 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()
|
/openbmc/linux/include/uapi/linux/ |
H A D | btf.h | 31 struct btf_type { struct
|