Home
last modified time | relevance | path

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

123

/linux/include/linux/
A Dbtf.h109 struct btf_type;
226 bool btf_type_is_void(const struct btf_type *t);
235 const struct btf_type *
238 const char *btf_type_str(const struct btf_type *t);
287 const struct btf_type *t2) in btf_kind_core_compat()
298 static inline u16 btf_kind(const struct btf_type *t) in btf_kind()
303 static inline bool btf_is_enum(const struct btf_type *t) in btf_is_enum()
330 static inline bool btf_is_int(const struct btf_type *t) in btf_is_int()
335 static inline bool btf_is_ptr(const struct btf_type *t) in btf_is_ptr()
410 static inline u16 btf_vlen(const struct btf_type *t) in btf_vlen()
[all …]
A Dbpf_local_storage.h171 const struct btf_type *key_type,
172 const struct btf_type *value_type);
/linux/tools/lib/bpf/
A Dbtf.h26 struct btf_type;
174 const struct btf_type *src_type);
356 static inline __u16 btf_kind(const struct btf_type *t) in btf_kind()
361 static inline __u16 btf_vlen(const struct btf_type *t) in btf_vlen()
366 static inline bool btf_kflag(const struct btf_type *t) in btf_kflag()
376 static inline bool btf_is_int(const struct btf_type *t) in btf_is_int()
381 static inline bool btf_is_ptr(const struct btf_type *t) in btf_is_ptr()
418 static inline bool btf_is_fwd(const struct btf_type *t) in btf_is_fwd()
443 static inline bool btf_is_mod(const struct btf_type *t) in btf_is_mod()
494 const struct btf_type *t2) in btf_kind_core_compat()
[all …]
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 …]
A Dbtf_dump.c314 const struct btf_type *t; in btf_dump_mark_referenced()
483 const struct btf_type *t; in btf_dump_order_type()
689 const struct btf_type *t; in btf_dump_emit_type()
1291 const struct btf_type *t; in btf_dump_emit_type_decl()
1370 const struct btf_type *t; in btf_dump_emit_mods()
1396 const struct btf_type *t; in btf_dump_drop_mods()
1430 const struct btf_type *t; in btf_dump_emit_type_chain()
1604 const struct btf_type *t; in btf_dump_emit_type_cast()
1999 const struct btf_type *t; in btf_dump_var_data()
2239 const struct btf_type *var; in btf_dump_datasec_data()
[all …]
A Dbtf.c1482 struct btf_type *t; in btf_get_raw_data()
1829 struct btf_type *t; in btf_add_type()
2000 struct btf_type *t; in btf__add_int()
2048 struct btf_type *t; in btf__add_float()
2093 struct btf_type *t; in btf_add_ref_kind()
2143 struct btf_type *t; in btf__add_array()
2173 struct btf_type *t; in btf_add_composite()
2253 struct btf_type *t; in btf__add_field()
2308 struct btf_type *t; in btf_add_enum_common()
2369 struct btf_type *t; in btf__add_enum_value()
[all …]
A Drelo_core.c21 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()
269 const struct btf_type *t; in bpf_core_parse_spec()
561 const struct btf_type *targ_type; in bpf_core_spec_match()
685 const struct btf_type *t; in bpf_core_calc_field_relo()
688 const struct btf_type *mt; in bpf_core_calc_field_relo()
851 const struct btf_type *t; in bpf_core_calc_enumval_relo()
911 const struct btf_type *orig_t, *new_t; in bpf_core_calc_relo()
1158 const struct btf_type *t; in bpf_core_format_spec()
[all …]
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()
A Dlibbpf_internal.h232 struct btf_type;
234 struct btf_type *btf_type_by_id(const struct btf *btf, __u32 type_id);
235 const char *btf_kind_str(const struct btf_type *t);
236 const struct btf_type *skip_mods_and_typedefs(const struct btf *btf, __u32 id, __u32 *res_id);
241 static inline enum btf_func_linkage btf_func_linkage(const struct btf_type *t) in btf_func_linkage()
282 const struct btf_type *def_t, bool strict,
536 int btf_field_iter_init(struct btf_field_iter *it, struct btf_type *t, enum btf_field_iter_kind ite…
/linux/tools/bpf/bpftool/
A Dgen.c58 static const struct btf_type *
61 const struct btf_type *t; in resolve_func_ptr()
280 const struct btf_type *sec; in codegen_datasecs()
503 const struct btf_type *sec; in codegen_asserts()
2033 const struct btf_type *btf_type = btf__type_by_id(info->src_btf, type_id); in btfgen_mark_type() local
2108 const struct btf_type *btf_type; in btfgen_record_field_relo() local
2123 while (btf_is_mod(btf_type) || btf_is_typedef(btf_type)) { in btfgen_record_field_relo()
2124 type_id = btf_type->type; in btfgen_record_field_relo()
2151 btf_kind_str(btf_type), btf_type->type); in btfgen_record_field_relo()
2169 const struct btf_type *btf_type; in btfgen_mark_type_match() local
[all …]
A Dbtf_dumper.c28 const struct btf_type *func_proto,
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()
468 const struct btf_type *t; in btf_dumper_struct()
531 const struct btf_type *t; in btf_dumper_datasec()
622 const struct btf_type *proto_type; in __btf_dumper_type_only()
[all …]
/linux/kernel/bpf/
A Dbtf.c254 struct btf_type **types;
286 const struct btf_type *t;
553 const struct btf_type *t; in btf_find_by_name_kind()
634 const struct btf_type *t; in btf_type_resolve_ptr()
894 const struct btf_type *t; in btf_member_is_reg_int()
961 const struct btf_type *t; in btf_show_name()
1241 const struct btf_type *rt; in btf_show_obj_safe()
2007 const struct btf_type *
3402 const struct btf_type *t; in btf_find_decl_tag_value()
3770 const struct btf_type *t; in btf_parse_kptr()
[all …]
A Dbpf_struct_ops.c89 const struct btf_type *type, in is_valid_value_type()
92 const struct btf_type *common_value_type; in is_valid_value_type()
94 const struct btf_type *vt, *mt; in is_valid_value_type()
157 static const struct btf_type *
162 const struct btf_type *func_type; in find_stub_func_proto()
319 const struct btf_type *t; in bpf_struct_ops_desc_init()
374 const struct btf_type *func_proto; in bpf_struct_ops_desc_init()
505 const struct btf_type *mtype; in check_zero_holes()
596 const struct btf_type *module_type; in bpf_struct_ops_map_update_elem()
644 const struct btf_type *mtype, *ptype; in bpf_struct_ops_map_update_elem()
[all …]
A Dinode.c600 const struct btf_type *cmd_t;
601 const struct btf_type *map_t;
602 const struct btf_type *prog_t;
603 const struct btf_type *attach_t;
609 const struct btf_type *t; in find_bpffs_btf_enums()
650 static bool find_btf_enum_const(const struct btf *btf, const struct btf_type *enum_t, in find_btf_enum_const()
682 const struct btf_type *enum_t, in seq_print_delegate_opts()
880 const struct btf_type *enum_t; in bpf_parse_param()
/linux/kernel/trace/
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,
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/
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()
218 static int bpf_dummy_ops_check_member(const struct btf_type *t, in bpf_dummy_ops_check_member()
239 const struct btf_type *state; in bpf_dummy_ops_btf_struct_access()
240 const struct btf_type *t; in bpf_dummy_ops_btf_struct_access()
268 static int bpf_dummy_init_member(const struct btf_type *t, in bpf_dummy_init_member()
/linux/Documentation/bpf/
A Dbtf.rst97 struct btf_type {
128 ``struct btf_type`` encoding requirement:
180 ``struct btf_type`` encoding requirement:
192 ``struct btf_type`` encoding requirement:
237 ``struct btf_type`` encoding requirement:
281 ``struct btf_type`` encoding requirement:
306 ``struct btf_type`` encoding requirement:
318 ``struct btf_type`` encoding requirement:
330 ``struct btf_type`` encoding requirement:
342 ``struct btf_type`` encoding requirement:
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
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()
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()
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/
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/
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/drivers/hid/bpf/
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/sched_ext/include/scx/
A Dcompat.h27 const struct btf_type *t; in __COMPAT_read_enum()
83 const struct btf_type *t; in __COMPAT_struct_has_field()

Completed in 83 milliseconds

123