/linux-6.1.9/tools/testing/selftests/bpf/ |
D | test_btf.h | 24 #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)
|
D | btf_helpers.c | 121 arr->type, arr->index_type, arr->nelems); in fprintf_btf_type_raw()
|
/linux-6.1.9/lib/ |
D | ubsan.h | 63 struct type_descriptor *index_type; member
|
D | ubsan.c | 279 val_to_string(index_str, sizeof(index_str), data->index_type, index); in __ubsan_handle_out_of_bounds()
|
/linux-6.1.9/include/uapi/linux/ |
D | btf.h | 113 __u32 index_type; member
|
/linux-6.1.9/tools/include/uapi/linux/ |
D | btf.h | 113 __u32 index_type; member
|
/linux-6.1.9/tools/lib/bpf/ |
D | btf.c | 377 a->index_type = bswap_32(a->index_type); in btf_bswap_type_rest() 1910 a->index_type = index_type_id; in btf__add_array() 3542 h = hash_combine(h, info->index_type); in btf_hash_array() 3564 info1->index_type == info2->index_type && in btf_equal_array() 4129 eq = btf_dedup_is_equiv(d, cand_arr->index_type, canon_arr->index_type); in btf_dedup_is_equiv() 4455 ref_type_id = btf_dedup_ref_type(d, info->index_type); in btf_dedup_ref_type() 4458 info->index_type = ref_type_id; in btf_dedup_ref_type() 4722 err = err ?: visit(&a->index_type, ctx); in btf_type_visit_type_ids()
|
D | btf_dump.c | 343 d->type_states[a->index_type].referenced = 1; in btf_dump_mark_referenced()
|
/linux-6.1.9/Documentation/bpf/ |
D | btf.rst | 203 __u32 index_type; 209 * ``index_type``: the index type 212 The ``index_type`` can be any regular int type (``u8``, ``u16``, ``u32``, 214 ``index_type`` follows DWARF, which has an ``index_type`` for its array type. 215 Currently in BTF, beyond type verification, the ``index_type`` is not used.
|
/linux-6.1.9/kernel/bpf/ |
D | btf.c | 2832 if (!array->index_type || !BTF_TYPE_ID_VALID(array->index_type)) { in btf_array_check_meta() 2846 const struct btf_type *elem_type, *index_type; in btf_array_resolve() local 2852 index_type_id = array->index_type; in btf_array_resolve() 2853 index_type = btf_type_by_id(btf, index_type_id); in btf_array_resolve() 2854 if (btf_type_nosize_or_null(index_type) || in btf_array_resolve() 2855 btf_type_is_resolve_source_only(index_type)) { in btf_array_resolve() 2860 if (!env_type_is_resolve_sink(env, index_type) && in btf_array_resolve() 2862 return env_stack_push(env, index_type, index_type_id); in btf_array_resolve() 2864 index_type = btf_type_id_size(btf, &index_type_id, NULL); in btf_array_resolve() 2865 if (!index_type || !btf_type_is_int(index_type) || in btf_array_resolve() [all …]
|
/linux-6.1.9/tools/bpf/bpftool/ |
D | btf.c | 153 jsonw_uint_field(w, "index_type_id", arr->index_type); in dump_btf_type() 157 arr->type, arr->index_type, arr->nelems); in dump_btf_type()
|
D | gen.c | 1778 err = err ? : btfgen_mark_type(info, array->index_type, follow_pointers); in btfgen_mark_type() 1924 err = err ? : btfgen_mark_type_match(info, array->index_type, false); in btfgen_mark_type_match()
|
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_err.c | 2770 u8 index_type = NONE_ERROR; in hclge_handle_error_type_reg_log() local 2788 index_type = i; in hclge_handle_error_type_reg_log() 2793 if (index_module != MODULE_NONE && index_type != NONE_ERROR) in hclge_handle_error_type_reg_log() 2797 hclge_hw_type_id_st[index_type].msg, in hclge_handle_error_type_reg_log()
|
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/ |
D | btf_write.c | 92 ASSERT_EQ(btf_array(t)->index_type, 1, "array_index_type"); in gen_btf()
|