Home
last modified time | relevance | path

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

/Linux-v5.10/kernel/bpf/
Dbpf_struct_ops.c31 const struct bpf_struct_ops *st_ops; member
103 struct bpf_struct_ops *st_ops; in bpf_struct_ops_init() local
122 st_ops = bpf_struct_ops[i]; in bpf_struct_ops_init()
124 if (strlen(st_ops->name) + VALUE_PREFIX_LEN >= in bpf_struct_ops_init()
127 st_ops->name); in bpf_struct_ops_init()
130 sprintf(value_name, "%s%s", VALUE_PREFIX, st_ops->name); in bpf_struct_ops_init()
140 type_id = btf_find_by_name_kind(btf, st_ops->name, in bpf_struct_ops_init()
144 st_ops->name); in bpf_struct_ops_init()
150 btf_type_vlen(t), st_ops->name); in bpf_struct_ops_init()
160 st_ops->name); in bpf_struct_ops_init()
[all …]
Dverifier.c11410 const struct bpf_struct_ops *st_ops; in check_struct_ops_btf_id() local
11417 st_ops = bpf_struct_ops_find(btf_id); in check_struct_ops_btf_id()
11418 if (!st_ops) { in check_struct_ops_btf_id()
11424 t = st_ops->type; in check_struct_ops_btf_id()
11428 member_idx, st_ops->name); in check_struct_ops_btf_id()
11438 mname, member_idx, st_ops->name); in check_struct_ops_btf_id()
11442 if (st_ops->check_member) { in check_struct_ops_btf_id()
11443 int err = st_ops->check_member(t, member); in check_struct_ops_btf_id()
11447 mname, st_ops->name); in check_struct_ops_btf_id()
11454 env->ops = st_ops->verifier_ops; in check_struct_ops_btf_id()
/Linux-v5.10/tools/lib/bpf/
Dlibbpf.c351 struct bpf_struct_ops *st_ops; member
793 struct bpf_struct_ops *st_ops; in bpf_map__init_kern_struct_ops() local
798 st_ops = map->st_ops; in bpf_map__init_kern_struct_ops()
799 type = st_ops->type; in bpf_map__init_kern_struct_ops()
800 tname = st_ops->tname; in bpf_map__init_kern_struct_ops()
809 map->name, st_ops->type_id, kern_type_id, kern_vtype_id); in bpf_map__init_kern_struct_ops()
814 st_ops->kern_vdata = calloc(1, kern_vtype->size); in bpf_map__init_kern_struct_ops()
815 if (!st_ops->kern_vdata) in bpf_map__init_kern_struct_ops()
818 data = st_ops->data; in bpf_map__init_kern_struct_ops()
820 kern_data = st_ops->kern_vdata + kern_data_off; in bpf_map__init_kern_struct_ops()
[all …]
/Linux-v5.10/arch/s390/include/asm/
Dpci.h72 u64 st_ops; member