Home
last modified time | relevance | path

Searched refs:elem_type_id (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/tools/lib/bpf/
H A Dbtf_dump.c2033 __u32 i, elem_type_id; in btf_dump_array_data() local
2037 elem_type_id = array->type; in btf_dump_array_data()
2038 elem_type = skip_mods_and_typedefs(d->btf, elem_type_id, NULL); in btf_dump_array_data()
2039 elem_size = btf__resolve_size(d->btf, elem_type_id); in btf_dump_array_data()
2074 btf_dump_dump_type_data(d, NULL, elem_type, elem_type_id, data, 0, 0); in btf_dump_array_data()
2349 __u32 elem_type_id, elem_size; in btf_dump_type_data_check_zero() local
2352 elem_type_id = array->type; in btf_dump_type_data_check_zero()
2353 elem_size = btf__resolve_size(d->btf, elem_type_id); in btf_dump_type_data_check_zero()
2354 elem_type = skip_mods_and_typedefs(d->btf, elem_type_id, NULL); in btf_dump_type_data_check_zero()
2368 elem_type_id, in btf_dump_type_data_check_zero()
H A Dbtf.h180 int index_type_id, int elem_type_id, __u32 nr_elems);
H A Dbtf.c1900 int btf__add_array(struct btf *btf, int index_type_id, int elem_type_id, __u32 nr_elems) in btf__add_array() argument
1906 if (validate_type_id(index_type_id) || validate_type_id(elem_type_id)) in btf__add_array()
1922 a->type = elem_type_id; in btf__add_array()
/openbmc/linux/kernel/bpf/
H A Dbtf.c2894 u32 elem_type_id, index_type_id; in btf_array_resolve() local
2919 elem_type_id = array->type; in btf_array_resolve()
2920 elem_type = btf_type_by_id(btf, elem_type_id); in btf_array_resolve()
2929 !env_type_is_resolved(env, elem_type_id)) in btf_array_resolve()
2930 return env_stack_push(env, elem_type, elem_type_id); in btf_array_resolve()
2932 elem_type = btf_type_id_size(btf, &elem_type_id, &elem_size); in btf_array_resolve()
2949 env_stack_pop_resolved(env, elem_type_id, elem_size * array->nelems); in btf_array_resolve()
2970 u32 i, elem_size = 0, elem_type_id; in __btf_array_show() local
2973 elem_type_id = array->type; in __btf_array_show()
2974 elem_type = btf_type_skip_modifiers(btf, elem_type_id, NULL); in __btf_array_show()
[all …]