| /linux/include/linux/ |
| H A D | btf.h | 115 struct btf_type; 177 const struct btf_type *btf_type_id_size(const struct btf *btf, 229 bool btf_type_is_i32(const struct btf_type *t); 230 bool btf_type_is_i64(const struct btf_type *t); 231 bool btf_type_is_primitive(const struct btf_type *t); 232 bool btf_member_is_reg_int(const struct btf *btf, const struct btf_type *s, 235 struct btf_record *btf_parse_fields(const struct btf *btf, const struct btf_type *t, 238 bool btf_type_is_void(const struct btf_type *t); 243 const struct btf_type *btf_type_skip_modifiers(const struct btf *btf, 245 const struct btf_type *btf_type_resolve_ptr(const struct btf *btf, [all …]
|
| H A D | bpf_local_storage.h | 177 const struct btf_type *key_type, 178 const struct btf_type *value_type);
|
| /linux/tools/lib/bpf/ |
| H A D | btf.h | 26 struct btf_type; 179 LIBBPF_API const struct btf_type *btf__type_by_id(const struct btf *btf, 204 const struct btf_type *src_type); 435 static inline __u16 btf_kind(const struct btf_type *t) in btf_kind() 440 static inline __u32 btf_vlen(const struct btf_type *t) in btf_vlen() 445 static inline bool btf_kflag(const struct btf_type *t) in btf_kflag() 450 static inline bool btf_is_void(const struct btf_type *t) in btf_is_void() 455 static inline bool btf_is_int(const struct btf_type *t) in btf_is_int() 460 static inline bool btf_is_ptr(const struct btf_type *t) in btf_is_ptr() 465 static inline bool btf_is_array(const struct btf_type *t) in btf_is_array() [all …]
|
| H A D | btf_iter.c | 16 int btf_field_iter_init(struct btf_field_iter *it, struct btf_type *t, in btf_field_iter_init() 44 it->desc = (struct btf_field_desc) { 1, {offsetof(struct btf_type, type)} }; in btf_field_iter_init() 48 2, {sizeof(struct btf_type) + offsetof(struct btf_array, type), in btf_field_iter_init() 49 sizeof(struct btf_type) + offsetof(struct btf_array, index_type)} in btf_field_iter_init() 62 1, {offsetof(struct btf_type, type)}, in btf_field_iter_init() 98 1, {offsetof(struct btf_type, name_off)} in btf_field_iter_init() 103 1, {offsetof(struct btf_type, name_off)}, in btf_field_iter_init() 110 1, {offsetof(struct btf_type, name_off)}, in btf_field_iter_init() 118 1, {offsetof(struct btf_type, name_off)}, in btf_field_iter_init() 125 1, {offsetof(struct btf_type, name_off)}, in btf_field_iter_init() [all …]
|
| H A D | btf_dump.c | 318 const struct btf_type *t; in btf_dump_mark_referenced() 487 const struct btf_type *t; in btf_dump_order_type() 621 const struct btf_type *t); 624 const struct btf_type *t); 626 const struct btf_type *t, int lvl); 629 const struct btf_type *t); 631 const struct btf_type *t, int lvl); 634 const struct btf_type *t); 637 const struct btf_type *t, int lvl); 658 const struct btf_type *t = btf__type_by_id(d->btf, id); in btf_dump_is_blacklisted() [all …]
|
| H A D | btf.c | 30 static struct btf_type btf_void; 420 static int btf_type_size_unknown(const struct btf *btf, const struct btf_type *t) in btf_type_size_unknown() 451 return sizeof(struct btf_type) + l[kind].info_sz + vlen * l[kind].elem_sz; in btf_type_size_unknown() 454 static int btf_type_size(const struct btf *btf, const struct btf_type *t) in btf_type_size() 456 const int base_size = sizeof(struct btf_type); in btf_type_size() 494 static void btf_bswap_type_base(struct btf_type *t) in btf_bswap_type_base() 501 static int btf_bswap_type_rest(struct btf_type *t) in btf_bswap_type_rest() 584 while (next_type + sizeof(struct btf_type) <= end_type) { in btf_parse_type_sec() 630 const struct btf_type *t; in btf_validate_id() 641 static int btf_validate_type(const struct btf *btf, const struct btf_type *t, __u32 id) in btf_validate_type() [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() 74 const struct btf_type *t; in is_flex_arr() 148 const struct btf_type *local_type, *targ_type; in __bpf_core_types_are_compat() 268 const struct btf_type *t; in bpf_core_parse_spec() 418 const struct btf_type *local_type, *targ_type; in bpf_core_fields_are_compat() 489 const struct btf_type *local_type, *targ_type; in bpf_core_match_member() 562 const struct btf_type *targ_type; in bpf_core_spec_match() 686 const struct btf_type *t; in bpf_core_calc_field_relo() [all …]
|
| H A D | libbpf_internal.h | 245 struct btf_type; 247 struct btf_type *btf_type_by_id(const struct btf *btf, __u32 type_id); 248 const char *btf_kind_str(const struct btf_type *t); 249 const struct btf_type *skip_mods_and_typedefs(const struct btf *btf, __u32 id, __u32 *res_id); 253 bool btf_type_is_traceable_func(const struct btf *btf, const struct btf_type *t); 255 static inline enum btf_func_linkage btf_func_linkage(const struct btf_type *t) in btf_func_linkage() 296 const struct btf_type *def_t, bool strict, 594 int btf_field_iter_init(struct btf_field_iter *it, struct btf_type *t, enum btf_field_iter_kind ite…
|
| H A D | btf_relocate.c | 16 #define btf_type_by_id (struct btf_type *)btf_type_by_id 68 struct btf_type *t = btf_type_by_id(r->btf, i); in btf_relocate_rewrite_type_id() 134 struct btf_type *t = btf_type_by_id(r->btf, i); in btf_mark_embedded_composite_type_ids() 187 struct btf_type *base_t, *dist_t; in btf_relocate_map_distilled_base() 388 struct btf_type *t = btf_type_by_id(r->dist_base_btf, i); in btf_relocate_validate_distilled_base() 414 struct btf_type *t = btf_type_by_id(r->btf, i); in btf_relocate_rewrite_strs()
|
| /linux/tools/bpf/bpftool/ |
| H A D | gen.c | 58 static const struct btf_type * 61 const struct btf_type *t; in resolve_func_ptr() 156 const struct btf_type *sec, in codegen_datasec_def() 173 const struct btf_type *var = btf__type_by_id(btf, sec_var->type); in codegen_datasec_def() 241 static const struct btf_type *find_type_for_map(struct btf *btf, const char *map_ident) in find_type_for_map() 247 const struct btf_type *t = btf__type_by_id(btf, i); in find_type_for_map() 297 const struct btf_type *sec; in codegen_datasecs() 336 const struct btf_type *v) in btf_is_ptr_to_func_proto() 346 const struct btf_type *sec, *var; in codegen_subskel_datasecs() 520 const struct btf_type *sec; in codegen_asserts() [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 | btf.c | 94 static const char *btf_func_linkage_str(const struct btf_type *t) in btf_func_linkage_str() 121 const struct btf_type *t) in dump_btf_type() 366 const struct btf_type *vt; in dump_btf_type() 433 const struct btf_type *t; in dump_btf_raw() 500 const struct btf_type *a = *(void **)pa; in cmp_kfuncs() 501 const struct btf_type *b = *(void **)pb; in cmp_kfuncs() 519 const struct btf_type *t = btf__type_by_id(btf, i); in dump_btf_kfuncs() 520 const struct btf_type *ft; in dump_btf_kfuncs() 550 const struct btf_type *t = kfuncs.elems[i]; in dump_btf_kfuncs() 586 const struct btf_type *t = btf__type_by_id(btf, index); in btf_type_rank() [all …]
|
| /linux/kernel/bpf/ |
| H A D | btf.c | 256 struct btf_type **types; 290 const struct btf_type *t; 350 const char *btf_type_str(const struct btf_type *t) in btf_type_str() 434 const struct btf_type *type; 448 const struct btf_type *t, 453 const struct btf_type *struct_type, 455 const struct btf_type *member_type); 457 const struct btf_type *struct_type, 459 const struct btf_type *member_type); 461 const struct btf_type *t); [all …]
|
| H A D | bpf_struct_ops.c | 90 const struct btf_type *type, in is_valid_value_type() 93 const struct btf_type *common_value_type; in is_valid_value_type() 95 const struct btf_type *vt, *mt; in is_valid_value_type() 176 const struct btf_type *func_proto, void *stub_func_addr, in prepare_arg_info() 180 const struct btf_type *stub_func_proto, *pointed_type; in prepare_arg_info() 339 const struct btf_type *t; in is_module_member() 365 const struct btf_type *t; in bpf_struct_ops_desc_init() 419 const struct btf_type *func_proto, *ret_type; in bpf_struct_ops_desc_init() 595 static int check_zero_holes(const struct btf *btf, const struct btf_type *t, void *data) in check_zero_holes() 599 const struct btf_type *mtype; in check_zero_holes() [all …]
|
| /linux/kernel/trace/ |
| 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() 74 const struct btf_type **member_type) in btf_find_struct_member() 78 const struct btf_type *mtype; in btf_find_struct_member()
|
| 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, 12 const struct btf_type **member_type);
|
| /linux/io_uring/ |
| H A D | bpf-ops.c | 13 static const struct btf_type *loop_params_type; 93 const struct btf_type *t = btf_type_by_id(reg->btf, reg->btf_id); in bpf_io_btf_struct_access() 109 static const struct btf_type * 139 static int bpf_io_check_member(const struct btf_type *t, in bpf_io_check_member() 146 static int bpf_io_init_member(const struct btf_type *t, in bpf_io_init_member()
|
| /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() 171 const struct btf_type *t; in test_libbpf_bpf_prog_type_str()
|
| H A D | resolve_btfids.c | 149 const struct btf_type *type; in BTF_ID() 197 const struct btf_type *t; in btf_has_decl_tag() 245 const struct btf_type *ptr, *tag; in is_arena_tagged_ptr() 323 const struct btf_type *fn, *proto; in test_resolve_btfids()
|
| H A D | libbpf_probes.c | 10 const struct btf_type *t; in test_libbpf_probe_prog_types() 50 const struct btf_type *t; in test_libbpf_probe_map_types()
|
| H A D | test_global_funcs.c | 29 const struct btf_type *t; in check_ctx_arg_type() 94 const struct btf_type *fn_t, *proto_t; in subtest_ctx_arg_rewrite()
|
| /linux/tools/bpf/resolve_btfids/ |
| H A D | main.c | 733 const struct btf_type *type; in symbols_resolve() 980 static const struct btf_type *btf_type_skip_qualifiers(const struct btf *btf, s32 type_id) in btf_type_skip_qualifiers() 982 const struct btf_type *t = btf__type_by_id(btf, type_id); in btf_type_skip_qualifiers() 1057 const struct btf_type *t; in collect_decl_tags() 1176 const struct btf_type *t; in is_kf_implicit_arg() 1227 struct btf_type *t; in process_kfunc_with_implicit_args() 1229 t = (struct btf_type *)btf__type_by_id(btf, kfunc->btf_id); in process_kfunc_with_implicit_args() 1238 t = (struct btf_type *)btf__type_by_id(btf, proto_id); in process_kfunc_with_implicit_args() 1264 t = (struct btf_type *)btf__type_by_id(btf, ctx->decl_tags[i]); in process_kfunc_with_implicit_args() 1287 t = (struct btf_type *)btf__type_by_id(btf, proto_id); in process_kfunc_with_implicit_args() [all …]
|
| /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()
|
| /linux/net/ipv4/ |
| H A D | bpf_tcp_ca.c | 17 static const struct btf_type *tcp_sock_type; 19 static const struct btf_type *tcp_congestion_ops_type; 65 const struct btf_type *t; in bpf_tcp_ca_btf_struct_access() 141 const struct btf_type *t; in prog_ops_moff() 210 static int bpf_tcp_ca_init_member(const struct btf_type *t, in bpf_tcp_ca_init_member()
|
| /linux/drivers/hid/bpf/ |
| H A D | hid_bpf_struct_ops.c | 39 static int hid_bpf_ops_check_member(const struct btf_type *t, in hid_bpf_ops_check_member() 88 const struct btf_type *state = NULL; in hid_bpf_ops_btf_struct_access() 89 const struct btf_type *t; in hid_bpf_ops_btf_struct_access() 155 static int hid_bpf_ops_init_member(const struct btf_type *t, in hid_bpf_ops_init_member()
|