Home
last modified time | relevance | path

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

/Linux-v6.6/kernel/bpf/
Dbpf_struct_ops.c35 const struct bpf_struct_ops *st_ops; member
117 struct bpf_struct_ops *st_ops; in bpf_struct_ops_init() local
136 st_ops = bpf_struct_ops[i]; in bpf_struct_ops_init()
138 if (strlen(st_ops->name) + VALUE_PREFIX_LEN >= in bpf_struct_ops_init()
141 st_ops->name); in bpf_struct_ops_init()
144 sprintf(value_name, "%s%s", VALUE_PREFIX, st_ops->name); in bpf_struct_ops_init()
154 type_id = btf_find_by_name_kind(btf, st_ops->name, in bpf_struct_ops_init()
158 st_ops->name); in bpf_struct_ops_init()
164 btf_type_vlen(t), st_ops->name); in bpf_struct_ops_init()
174 st_ops->name); in bpf_struct_ops_init()
[all …]
Dverifier.c19180 const struct bpf_struct_ops *st_ops; in check_struct_ops_btf_id() local
19192 st_ops = bpf_struct_ops_find(btf_id); in check_struct_ops_btf_id()
19193 if (!st_ops) { in check_struct_ops_btf_id()
19199 t = st_ops->type; in check_struct_ops_btf_id()
19203 member_idx, st_ops->name); in check_struct_ops_btf_id()
19213 mname, member_idx, st_ops->name); in check_struct_ops_btf_id()
19217 if (st_ops->check_member) { in check_struct_ops_btf_id()
19218 int err = st_ops->check_member(t, member, prog); in check_struct_ops_btf_id()
19222 mname, st_ops->name); in check_struct_ops_btf_id()
19229 env->ops = st_ops->verifier_ops; in check_struct_ops_btf_id()
/Linux-v6.6/net/bpf/
Dbpf_dummy_struct_ops.c80 const struct bpf_struct_ops *st_ops = &bpf_bpf_dummy_ops; in bpf_struct_ops_test_run() local
90 if (prog->aux->attach_btf_id != st_ops->type_id) in bpf_struct_ops_test_run()
122 &st_ops->func_models[op_idx], in bpf_struct_ops_test_run()
/Linux-v6.6/tools/lib/bpf/
Dlibbpf.c525 struct bpf_struct_ops *st_ops; member
996 struct bpf_struct_ops *st_ops; in bpf_map__init_kern_struct_ops() local
1001 st_ops = map->st_ops; in bpf_map__init_kern_struct_ops()
1002 type = st_ops->type; in bpf_map__init_kern_struct_ops()
1003 tname = st_ops->tname; in bpf_map__init_kern_struct_ops()
1012 map->name, st_ops->type_id, kern_type_id, kern_vtype_id); in bpf_map__init_kern_struct_ops()
1017 st_ops->kern_vdata = calloc(1, kern_vtype->size); in bpf_map__init_kern_struct_ops()
1018 if (!st_ops->kern_vdata) in bpf_map__init_kern_struct_ops()
1021 data = st_ops->data; in bpf_map__init_kern_struct_ops()
1023 kern_data = st_ops->kern_vdata + kern_data_off; in bpf_map__init_kern_struct_ops()
[all …]
/Linux-v6.6/arch/s390/include/asm/
Dpci.h72 u64 st_ops; member