Searched refs:index_type (Results 1 – 10 of 10) sorted by relevance
| /Linux-v5.4/tools/testing/selftests/bpf/ |
| D | test_btf.h | 22 #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)
|
| /Linux-v5.4/lib/ |
| D | ubsan.h | 63 struct type_descriptor *index_type; member
|
| D | ubsan.c | 362 val_to_string(index_str, sizeof(index_str), data->index_type, index); in __ubsan_handle_out_of_bounds()
|
| /Linux-v5.4/include/uapi/linux/ |
| D | btf.h | 106 __u32 index_type; member
|
| /Linux-v5.4/tools/include/uapi/linux/ |
| D | btf.h | 106 __u32 index_type; member
|
| /Linux-v5.4/kernel/bpf/ |
| D | btf.c | 1914 if (!array->index_type || !BTF_TYPE_ID_VALID(array->index_type)) { in btf_array_check_meta() 1928 const struct btf_type *elem_type, *index_type; in btf_array_resolve() local 1934 index_type_id = array->index_type; in btf_array_resolve() 1935 index_type = btf_type_by_id(btf, index_type_id); in btf_array_resolve() 1936 if (btf_type_nosize_or_null(index_type) || in btf_array_resolve() 1937 btf_type_is_resolve_source_only(index_type)) { in btf_array_resolve() 1942 if (!env_type_is_resolve_sink(env, index_type) && in btf_array_resolve() 1944 return env_stack_push(env, index_type, index_type_id); in btf_array_resolve() 1946 index_type = btf_type_id_size(btf, &index_type_id, NULL); in btf_array_resolve() 1947 if (!index_type || !btf_type_is_int(index_type) || in btf_array_resolve() [all …]
|
| /Linux-v5.4/tools/lib/bpf/ |
| D | btf.c | 1872 h = hash_combine(h, info->index_type); in btf_hash_array() 1894 info1->index_type == info2->index_type && in btf_equal_array() 2308 cand_arr->index_type, canon_arr->index_type); in btf_dedup_is_equiv() 2597 ref_type_id = btf_dedup_ref_type(d, info->index_type); in btf_dedup_ref_type() 2600 info->index_type = ref_type_id; in btf_dedup_ref_type() 2791 r = btf_dedup_remap_type_id(d, arr_info->index_type); in btf_dedup_remap_type() 2794 arr_info->index_type = r; in btf_dedup_remap_type()
|
| D | btf_dump.c | 278 d->type_states[a->index_type].referenced = 1; in btf_dump_mark_referenced()
|
| /Linux-v5.4/Documentation/bpf/ |
| D | btf.rst | 199 __u32 index_type; 205 * ``index_type``: the index type 208 The ``index_type`` can be any regular int type (``u8``, ``u16``, ``u32``, 210 ``index_type`` follows DWARF, which has an ``index_type`` for its array type. 211 Currently in BTF, beyond type verification, the ``index_type`` is not used.
|
| /Linux-v5.4/tools/bpf/bpftool/ |
| D | btf.c | 137 jsonw_uint_field(w, "index_type_id", arr->index_type); in dump_btf_type() 141 arr->type, arr->index_type, arr->nelems); in dump_btf_type()
|