Home
last modified time | relevance | path

Searched refs:index_type (Results 1 – 17 of 17) sorted by relevance

/linux/tools/testing/selftests/bpf/
H A Dtest_btf.h24 #define BTF_ARRAY_ENC(type, index_type, nr_elems) \ argument
25 (type), (index_type), (nr_elems)
26 #define BTF_TYPE_ARRAY_ENC(type, index_type, nr_elems) \ argument
28 BTF_ARRAY_ENC(type, index_type, nr_elems)
H A Dbtf_helpers.c121 arr->type, arr->index_type, arr->nelems); in fprintf_btf_type_raw()
/linux/drivers/gpu/drm/msm/registers/
H A Dgen_header.py302 def __init__(self, attrs, domain, variant, parent, index_type): argument
326 self.index_type = index_type
328 self.index_type = None
336 if not self.index_type:
339 return "enum %s" % self.index_type.name
372 if self.index_type:
373 for val, offset in zip(self.index_type.names(), self.offsets):
711 index_type = self.enums[attrs["index"]] if "index" in attrs else None
712 self.current_array = Array(attrs, self.prefix(variant), variant, self.current_array, index_type)
/linux/include/uapi/linux/
H A Dbtf.h114 __u32 index_type; member
/linux/tools/include/uapi/linux/
H A Dbtf.h114 __u32 index_type; member
/linux/lib/
H A Dubsan.h102 struct type_descriptor *index_type; member
H A Dubsan.c452 val_to_string(index_str, sizeof(index_str), data->index_type, index); in __ubsan_handle_out_of_bounds()
/linux/tools/lib/bpf/
H A Dbtf_iter.c49 sizeof(struct btf_type) + offsetof(struct btf_array, index_type)} in btf_field_iter_init()
H A Dbtf.c386 a->index_type = bswap_32(a->index_type); in btf_bswap_type_rest()
517 err = err ?: btf_validate_id(btf, a->index_type, id); in btf_validate_type()
2297 a->index_type = index_type_id;
4167 h = hash_combine(h, info->index_type);
4189 info1->index_type == info2->index_type &&
4545 if (a1->index_type != a2->index_type &&
4546 !btf_dedup_identical_types(d, a1->index_type, a
[all...]
H A Dbtf_dump.c348 d->type_states[a->index_type].referenced = 1; in btf_dump_mark_referenced()
H A Dlibbpf.c10695 new_array_id = btf__add_array(btf, array->index_type, array->type, nr_elements); in map_btf_datasec_resize()
/linux/Documentation/bpf/
H A Dbtf.rst204 __u32 index_type;
210 * ``index_type``: the index type
213 The ``index_type`` can be any regular int type (``u8``, ``u16``, ``u32``,
215 ``index_type`` follows DWARF, which has an ``index_type`` for its array type.
216 Currently in BTF, beyond type verification, the ``index_type`` is not used.
/linux/kernel/bpf/
H A Dbtf.c3076 if (!array->index_type || !BTF_TYPE_ID_VALID(array->index_type)) { in btf_array_check_meta()
3090 const struct btf_type *elem_type, *index_type; in btf_array_resolve() local
3096 index_type_id = array->index_type; in btf_array_resolve()
3097 index_type = btf_type_by_id(btf, index_type_id); in btf_array_resolve()
3098 if (btf_type_nosize_or_null(index_type) || in btf_array_resolve()
3099 btf_type_is_resolve_source_only(index_type)) { in btf_array_resolve()
3104 if (!env_type_is_resolve_sink(env, index_type) && in btf_array_resolve()
3106 return env_stack_push(env, index_type, index_type_id); in btf_array_resolve()
3108 index_type = btf_type_id_size(btf, &index_type_id, NULL); in btf_array_resolve()
3109 if (!index_type || !btf_type_is_int(index_type) || in btf_array_resolve()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_write.c92 ASSERT_EQ(btf_array(t)->index_type, 1, "array_index_type"); in gen_btf()
/linux/tools/bpf/bpftool/
H A Dbtf.c170 jsonw_uint_field(w, "index_type_id", arr->index_type); in dump_btf_type()
174 arr->type, arr->index_type, arr->nelems); in dump_btf_type()
H A Dgen.c2137 err = err ? : btfgen_mark_type(info, array->index_type, follow_pointers); in btfgen_mark_type()
2283 err = err ? : btfgen_mark_type_match(info, array->index_type, false); in btfgen_mark_type_match()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_err.c3196 u8 index_type = NONE_ERROR; in hclge_handle_error_type_reg_log() local
3215 index_type = i; in hclge_handle_error_type_reg_log()
3221 if (index_module != MODULE_NONE && index_type != NONE_ERROR) in hclge_handle_error_type_reg_log()
3225 hclge_hw_type_id_st[index_type].msg, in hclge_handle_error_type_reg_log()