Home
last modified time | relevance | path

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

/linux/tools/lib/bpf/
H A Dlibbpf.c1004 const struct btf_type *kern_type, *kern_vtype; in find_struct_ops_kern_types() local
1035 kern_vtype = btf__type_by_id(btf, kern_vtype_id); in find_struct_ops_kern_types()
1043 kern_data_member = btf_members(kern_vtype); in find_struct_ops_kern_types()
1044 for (i = 0; i < btf_vlen(kern_vtype); i++, kern_data_member++) { in find_struct_ops_kern_types()
1048 if (i == btf_vlen(kern_vtype)) { in find_struct_ops_kern_types()
1056 *vtype = kern_vtype; in find_struct_ops_kern_types()
1130 const struct btf_type *type, *kern_type, *kern_vtype; in bpf_map__init_kern_struct_ops() local
1146 &kern_vtype, &kern_vtype_id, in bpf_map__init_kern_struct_ops()
1157 map->def.value_size = kern_vtype->size; in bpf_map__init_kern_struct_ops()
1160 st_ops->kern_vdata = calloc(1, kern_vtype->size); in bpf_map__init_kern_struct_ops()