Searched refs:elem_type_id (Results 1 – 4 of 4) sorted by relevance
/linux/tools/lib/bpf/ |
H A D | btf_dump.c | 2035 __u32 i, elem_type_id; in btf_dump_array_data() local 2040 elem_type_id = array->type; in btf_dump_array_data() 2041 elem_type = skip_mods_and_typedefs(d->btf, elem_type_id, NULL); in btf_dump_array_data() 2042 elem_size = btf__resolve_size(d->btf, elem_type_id); in btf_dump_array_data() 2079 btf_dump_dump_type_data(d, NULL, elem_type, elem_type_id, data, 0, 0); in btf_dump_array_data() 2355 __u32 elem_type_id, elem_size; in btf_dump_type_data_check_zero() local 2358 elem_type_id = array->type; in btf_dump_type_data_check_zero() 2359 elem_size = btf__resolve_size(d->btf, elem_type_id); in btf_dump_type_data_check_zero() 2360 elem_type = skip_mods_and_typedefs(d->btf, elem_type_id, NULL); in btf_dump_type_data_check_zero() 2374 elem_type_id, in btf_dump_type_data_check_zero()
|
H A D | btf.h | 205 int index_type_id, int elem_type_id, __u32 nr_elems);
|
H A D | btf.c | 2142 int btf__add_array(struct btf *btf, int index_type_id, int elem_type_id, __u32 nr_elems) in btf__add_array() argument 2148 if (validate_type_id(index_type_id) || validate_type_id(elem_type_id)) in btf__add_array() 2164 a->type = elem_type_id; in btf__add_array()
|
/linux/kernel/bpf/ |
H A D | btf.c | 2957 u32 elem_type_id, index_type_id; in btf_array_resolve() local 2982 elem_type_id = array->type; in btf_array_resolve() 2983 elem_type = btf_type_by_id(btf, elem_type_id); in btf_array_resolve() 2992 !env_type_is_resolved(env, elem_type_id)) in btf_array_resolve() 2993 return env_stack_push(env, elem_type, elem_type_id); in btf_array_resolve() 2995 elem_type = btf_type_id_size(btf, &elem_type_id, &elem_size); in btf_array_resolve() 3012 env_stack_pop_resolved(env, elem_type_id, elem_size * array->nelems); in btf_array_resolve() 3033 u32 i, elem_size = 0, elem_type_id; in __btf_array_show() local 3036 elem_type_id = array->type; in __btf_array_show() 3037 elem_type = btf_type_skip_modifiers(btf, elem_type_id, NULL); in __btf_array_show() [all …]
|