Home
last modified time | relevance | path

Searched refs:index_type (Results 1 – 13 of 13) 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/tools/include/uapi/linux/
H A Dbtf.h128 __u32 index_type;
113 __u32 index_type; global() member
/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.c542 a->index_type = bswap_32(a->index_type); in btf_bswap_type_rest()
672 err = err ?: btf_validate_id(btf, a->index_type, id); in btf_validate_type()
2555 a->index_type = index_type_id; in btf__add_array()
4452 h = hash_combine(h, info->index_type); in btf_hash_array()
4474 info1->index_type == info2->index_type && in btf_equal_array()
4832 if (a1->index_type != a2->index_type && in btf_dedup_identical_types()
4833 !btf_dedup_identical_types(d, a1->index_type, a2->index_type, depth - 1)) in btf_dedup_identical_types()
5087 eq = btf_dedup_is_equiv(d, cand_arr->index_type, canon_arr->index_type); in btf_dedup_is_equiv()
5439 ref_type_id = btf_dedup_ref_type(d, info->index_type); in btf_dedup_ref_type()
5442 info->index_type = ref_type_id; in btf_dedup_ref_type()
H A Dbtf_dump.c348 d->type_states[a->index_type].referenced = 1; in btf_dump_mark_referenced()
H A Dlibbpf.c11004 new_array_id = btf__add_array(btf, array->index_type, array->type, nr_elements); in map_btf_datasec_resize()
/linux/lib/
H A Dubsan.c452 val_to_string(index_str, sizeof(index_str), data->index_type, index); in __ubsan_handle_out_of_bounds()
/linux/kernel/bpf/
H A Dbtf.c3081 if (!array->index_type || !BTF_TYPE_ID_VALID(array->index_type)) { in btf_array_check_meta()
3095 const struct btf_type *elem_type, *index_type; in btf_array_resolve() local
3101 index_type_id = array->index_type; in btf_array_resolve()
3102 index_type = btf_type_by_id(btf, index_type_id); in btf_array_resolve()
3103 if (btf_type_nosize_or_null(index_type) || in btf_array_resolve()
3104 btf_type_is_resolve_source_only(index_type)) { in btf_array_resolve()
3109 if (!env_type_is_resolve_sink(env, index_type) && in btf_array_resolve()
3111 return env_stack_push(env, index_type, index_type_id); in btf_array_resolve()
3113 index_type = btf_type_id_size(btf, &index_type_id, NULL); in btf_array_resolve()
3114 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.c171 jsonw_uint_field(w, "index_type_id", arr->index_type); in dump_btf_type()
175 arr->type, arr->index_type, arr->nelems); in dump_btf_type()
H A Dgen.c2169 err = err ? : btfgen_mark_type(info, array->index_type, follow_pointers); in btfgen_mark_type()
2316 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.c3197 u8 index_type = NONE_ERROR; in hclge_handle_error_type_reg_log() local
3216 index_type = i; in hclge_handle_error_type_reg_log()
3222 if (index_module != MODULE_NONE && index_type != NONE_ERROR) in hclge_handle_error_type_reg_log()
3226 hclge_hw_type_id_st[index_type].msg, in hclge_handle_error_type_reg_log()