Home
last modified time | relevance | path

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

123

/linux/tools/lib/bpf/
H A Dbtf.h26 struct btf_type;
157 LIBBPF_API const struct btf_type *btf__type_by_id(const struct btf *btf,
182 const struct btf_type *src_type);
413 static inline __u16 btf_kind(const struct btf_type *t) in btf_is_composite()
418 static inline __u16 btf_vlen(const struct btf_type *t) in btf_is_enum()
423 static inline bool btf_kflag(const struct btf_type *t) in btf_is_enum64()
428 static inline bool btf_is_void(const struct btf_type *t) in btf_is_fwd()
433 static inline bool btf_is_int(const struct btf_type *t) in btf_is_typedef()
438 static inline bool btf_is_ptr(const struct btf_type *t) in btf_is_volatile()
443 static inline bool btf_is_array(const struct btf_type * in btf_is_const()
[all...]
H A Dbtf_iter.c16 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 Dbtf_relocate.c16 #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()
H A Dlibbpf_internal.h245 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);
254 static inline enum btf_func_linkage btf_func_linkage(const struct btf_type *t) in btf_func_linkage()
295 const struct btf_type *def_t, bool strict,
580 int btf_field_iter_init(struct btf_field_iter *it, struct btf_type *t, enum btf_field_iter_kind ite…
/linux/kernel/bpf/
H A Dbtf.c256 struct btf_type **types;
289 const struct btf_type *t;
349 const char *btf_type_str(const struct btf_type *t) in btf_type_str()
433 const struct btf_type *type;
447 const struct btf_type *t,
452 const struct btf_type *struct_type,
454 const struct btf_type *member_type);
456 const struct btf_type *struct_type,
458 const struct btf_type *member_type);
460 const struct btf_type *t);
[all …]
H A Dbpf_struct_ops.c90 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()
174 const struct btf_type *func_proto, void *stub_func_addr, in prepare_arg_info()
177 const struct btf_type *stub_func_proto, *pointed_type; in prepare_arg_info()
312 const struct btf_type *t; in is_module_member()
338 const struct btf_type *t; in bpf_struct_ops_desc_init()
392 const struct btf_type *func_proto, *ret_type; in bpf_struct_ops_desc_init()
555 static int check_zero_holes(const struct btf *btf, const struct btf_type *t, void *data) in check_zero_holes()
559 const struct btf_type *mtype; in check_zero_holes()
[all …]
H A Dinode.c595 const struct btf_type *cmd_t;
596 const struct btf_type *map_t;
597 const struct btf_type *prog_t;
598 const struct btf_type *attach_t;
604 const struct btf_type **type; in find_bpffs_btf_enums()
637 static bool find_btf_enum_const(const struct btf *btf, const struct btf_type *enum_t, in find_btf_enum_const()
669 const struct btf_type *enum_t, in seq_print_delegate_opts()
867 const struct btf_type *enum_t; in bpf_parse_param()
H A Dbloom_filter.c185 const struct btf_type *key_type, in bloom_map_check_btf()
186 const struct btf_type *value_type) in bloom_map_check_btf()
/linux/kernel/trace/
H A Dtrace_btf.h4 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 Dtrace_btf.c13 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()
/linux/net/bpf/
H A Dbpf_dummy_struct_ops.c98 const struct btf_type *func_proto = prog->aux->attach_func_proto; in check_test_run_args()
103 const struct btf_type *t; in check_test_run_args()
133 const struct btf_type *func_proto; in bpf_struct_ops_test_run()
219 static int bpf_dummy_ops_check_member(const struct btf_type *t, in bpf_dummy_ops_check_member()
240 const struct btf_type *state; in bpf_dummy_ops_btf_struct_access()
241 const struct btf_type *t; in bpf_dummy_ops_btf_struct_access()
269 static int bpf_dummy_init_member(const struct btf_type *t, in bpf_dummy_init_member()
/linux/tools/testing/selftests/bpf/prog_tests/
H A 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()
171 const struct btf_type *t; in test_libbpf_bpf_prog_type_str()
H A Dlibbpf_probes.c10 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 Dtest_global_funcs.c28 const struct btf_type *t; in check_ctx_arg_type()
93 const struct btf_type *fn_t, *proto_t; in subtest_ctx_arg_rewrite()
/linux/kernel/bpf/preload/iterators/
H A Diterators.bpf.c26 struct btf_type { struct
36 struct btf_type **types; argument
61 struct btf_type **types, *t; in get_name()
/linux/net/ipv4/
H A Dbpf_tcp_ca.c17 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/tools/bpf/resolve_btfids/
H A Dmain.c634 const struct btf_type *type; in symbols_resolve()
881 static const struct btf_type *btf_type_skip_qualifiers(const struct btf *btf, s32 type_id) in btf_type_skip_qualifiers()
883 const struct btf_type *t = btf__type_by_id(btf, type_id); in btf_type_skip_qualifiers()
933 const struct btf_type *t; in collect_decl_tags()
996 const struct btf_type *t; in collect_kfuncs()
1069 const struct btf_type *t; in is_kf_implicit_arg()
1120 struct btf_type *t; in process_kfunc_with_implicit_args()
1122 t = (struct btf_type *)btf__type_by_id(btf, kfunc->btf_id); in process_kfunc_with_implicit_args()
1131 t = (struct btf_type *)btf__type_by_id(btf, proto_id); in process_kfunc_with_implicit_args()
1157 t = (struct btf_type *)btf__type_by_id(btf, ctx->decl_tags[i]); in process_kfunc_with_implicit_args()
[all …]
/linux/drivers/hid/bpf/
H A Dhid_bpf_struct_ops.c39 static int hid_bpf_ops_check_member(const struct btf_type *t, in hid_bpf_ops_check_member()
84 const struct btf_type *state = NULL; in hid_bpf_ops_btf_struct_access()
85 const struct btf_type *t; in hid_bpf_ops_btf_struct_access()
149 static int hid_bpf_ops_init_member(const struct btf_type *t, in hid_bpf_ops_init_member()
/linux/tools/bpf/bpftool/
H A Dbtf.c93 static const char *btf_func_linkage_str(const struct btf_type *t) in btf_func_linkage_str()
120 const struct btf_type *t) in dump_btf_type()
370 const struct btf_type *vt; in dump_btf_type()
438 const struct btf_type *t; in dump_btf_raw()
505 const struct btf_type *a = *(void **)pa; in cmp_kfuncs()
506 const struct btf_type *b = *(void **)pb; in cmp_kfuncs()
524 const struct btf_type *t = btf__type_by_id(btf, i); in dump_btf_kfuncs()
525 const struct btf_type *ft; in dump_btf_kfuncs()
555 const struct btf_type *t = kfuncs.elems[i]; in dump_btf_kfuncs()
591 const struct btf_type *t = btf__type_by_id(btf, index); in btf_type_rank()
[all …]
H A Dstruct_ops.c19 static const struct btf_type *map_info_type;
44 const struct btf_type *t; in get_kern_struct_ops_name()
360 const struct btf_type *struct_ops_type; in __do_dump()
/linux/include/linux/
H A Dbpf_local_storage.h181 const struct btf_type *key_type,
182 const struct btf_type *value_type);
/linux/tools/sched_ext/include/scx/
H A Dcompat.h27 const struct btf_type *t; in __COMPAT_read_enum()
83 const struct btf_type *t; in __COMPAT_struct_has_field()
/linux/tools/perf/util/
H A Dbpf-event.c140 const struct btf_type *t; in synthesize_bpf_prog_name()
177 const struct btf_type *datasec;
190 const struct btf_type *datasec; in bpf_metadata_read_map_data()
228 const struct btf_type *t_var = btf__type_by_id(btf, vsi->type); in bpf_metadata_read_map_data()
280 const struct btf_type *t, const void *btf_data) in format_btf_variable()
313 const struct btf_type *t_var = btf__type_by_id(map->btf, in bpf_metadata_fill_event()
/linux/tools/testing/selftests/bpf/
H A 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/tools/testing/selftests/bpf/test_kmods/
H A Dbpf_test_no_cfi.c18 static int dummy_init_member(const struct btf_type *t, in dummy_init_member()

123