Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/
A Dtest_btf.h22 #define BTF_ARRAY_ENC(type, index_type, nr_elems) \ argument
23 (type), (index_type), (nr_elems)
24 #define BTF_TYPE_ARRAY_ENC(type, index_type, nr_elems) \ argument
26 BTF_ARRAY_ENC(type, index_type, nr_elems)
A Dbtf_helpers.c118 arr->type, arr->index_type, arr->nelems); in fprintf_btf_type_raw()
/linux/lib/
A Dubsan.h63 struct type_descriptor *index_type; member
A Dubsan.c288 val_to_string(index_str, sizeof(index_str), data->index_type, index); in __ubsan_handle_out_of_bounds()
/linux/tools/include/uapi/linux/
A Dbtf.h111 __u32 index_type; member
/linux/include/uapi/linux/
A Dbtf.h111 __u32 index_type; member
/linux/tools/lib/bpf/
A Dbtf.c365 a->index_type = bswap_32(a->index_type); in btf_bswap_type_rest()
1912 a->index_type = index_type_id; in btf__add_array()
3482 h = hash_combine(h, info->index_type); in btf_hash_array()
3504 info1->index_type == info2->index_type && in btf_equal_array()
4008 eq = btf_dedup_is_equiv(d, cand_arr->index_type, canon_arr->index_type); in btf_dedup_is_equiv()
4333 ref_type_id = btf_dedup_ref_type(d, info->index_type); in btf_dedup_ref_type()
4336 info->index_type = ref_type_id; in btf_dedup_ref_type()
4604 err = err ?: visit(&a->index_type, ctx); in btf_type_visit_type_ids()
A Dbtf_dump.c326 d->type_states[a->index_type].referenced = 1; in btf_dump_mark_referenced()
/linux/Documentation/bpf/
A Dbtf.rst201 __u32 index_type;
207 * ``index_type``: the index type
210 The ``index_type`` can be any regular int type (``u8``, ``u16``, ``u32``,
212 ``index_type`` follows DWARF, which has an ``index_type`` for its array type.
213 Currently in BTF, beyond type verification, the ``index_type`` is not used.
/linux/kernel/bpf/
A Dbtf.c2706 if (!array->index_type || !BTF_TYPE_ID_VALID(array->index_type)) { in btf_array_check_meta()
2720 const struct btf_type *elem_type, *index_type; in btf_array_resolve() local
2726 index_type_id = array->index_type; in btf_array_resolve()
2727 index_type = btf_type_by_id(btf, index_type_id); in btf_array_resolve()
2728 if (btf_type_nosize_or_null(index_type) || in btf_array_resolve()
2729 btf_type_is_resolve_source_only(index_type)) { in btf_array_resolve()
2734 if (!env_type_is_resolve_sink(env, index_type) && in btf_array_resolve()
2736 return env_stack_push(env, index_type, index_type_id); in btf_array_resolve()
2739 if (!index_type || !btf_type_is_int(index_type) || in btf_array_resolve()
2740 !btf_type_int_is_regular(index_type)) { in btf_array_resolve()
[all …]
/linux/tools/bpf/bpftool/
A Dbtf.c155 jsonw_uint_field(w, "index_type_id", arr->index_type); in dump_btf_type()
159 arr->type, arr->index_type, arr->nelems); in dump_btf_type()
/linux/tools/testing/selftests/bpf/prog_tests/
A Dbtf_write.c91 ASSERT_EQ(btf_array(t)->index_type, 1, "array_index_type"); in gen_btf()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
A Dhclge_err.c2769 u8 index_type = NONE_ERROR; in hclge_handle_error_type_reg_log() local
2787 index_type = i; in hclge_handle_error_type_reg_log()
2792 if (index_module != MODULE_NONE && index_type != NONE_ERROR) in hclge_handle_error_type_reg_log()
2796 hclge_hw_type_id_st[index_type].msg, in hclge_handle_error_type_reg_log()

Completed in 53 milliseconds