Home
last modified time | relevance | path

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

/Linux-v5.15/kernel/bpf/
Dbpf_struct_ops.c32 const struct bpf_struct_ops *st_ops; member
104 struct bpf_struct_ops *st_ops; in bpf_struct_ops_init() local
123 st_ops = bpf_struct_ops[i]; in bpf_struct_ops_init()
125 if (strlen(st_ops->name) + VALUE_PREFIX_LEN >= in bpf_struct_ops_init()
128 st_ops->name); in bpf_struct_ops_init()
131 sprintf(value_name, "%s%s", VALUE_PREFIX, st_ops->name); in bpf_struct_ops_init()
141 type_id = btf_find_by_name_kind(btf, st_ops->name, in bpf_struct_ops_init()
145 st_ops->name); in bpf_struct_ops_init()
151 btf_type_vlen(t), st_ops->name); in bpf_struct_ops_init()
161 st_ops->name); in bpf_struct_ops_init()
[all …]
Dverifier.c13251 const struct bpf_struct_ops *st_ops; in check_struct_ops_btf_id() local
13263 st_ops = bpf_struct_ops_find(btf_id); in check_struct_ops_btf_id()
13264 if (!st_ops) { in check_struct_ops_btf_id()
13270 t = st_ops->type; in check_struct_ops_btf_id()
13274 member_idx, st_ops->name); in check_struct_ops_btf_id()
13284 mname, member_idx, st_ops->name); in check_struct_ops_btf_id()
13288 if (st_ops->check_member) { in check_struct_ops_btf_id()
13289 int err = st_ops->check_member(t, member); in check_struct_ops_btf_id()
13293 mname, st_ops->name); in check_struct_ops_btf_id()
13300 env->ops = st_ops->verifier_ops; in check_struct_ops_btf_id()
/Linux-v5.15/tools/lib/bpf/
Dlibbpf.c373 struct bpf_struct_ops *st_ops; member
862 struct bpf_struct_ops *st_ops; in bpf_map__init_kern_struct_ops() local
867 st_ops = map->st_ops; in bpf_map__init_kern_struct_ops()
868 type = st_ops->type; in bpf_map__init_kern_struct_ops()
869 tname = st_ops->tname; in bpf_map__init_kern_struct_ops()
878 map->name, st_ops->type_id, kern_type_id, kern_vtype_id); in bpf_map__init_kern_struct_ops()
883 st_ops->kern_vdata = calloc(1, kern_vtype->size); in bpf_map__init_kern_struct_ops()
884 if (!st_ops->kern_vdata) in bpf_map__init_kern_struct_ops()
887 data = st_ops->data; in bpf_map__init_kern_struct_ops()
889 kern_data = st_ops->kern_vdata + kern_data_off; in bpf_map__init_kern_struct_ops()
[all …]
/Linux-v5.15/arch/s390/include/asm/
Dpci.h72 u64 st_ops; member