Home
last modified time | relevance | path

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

/openbmc/linux/kernel/bpf/
H A 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 …]
H A Dverifier.c19740 const struct bpf_struct_ops *st_ops; in check_struct_ops_btf_id() local
19752 st_ops = bpf_struct_ops_find(btf_id); in check_struct_ops_btf_id()
19753 if (!st_ops) { in check_struct_ops_btf_id()
19759 t = st_ops->type; in check_struct_ops_btf_id()
19763 member_idx, st_ops->name); in check_struct_ops_btf_id()
19773 mname, member_idx, st_ops->name); in check_struct_ops_btf_id()
19777 if (st_ops->check_member) { in check_struct_ops_btf_id()
19778 int err = st_ops->check_member(t, member, prog); in check_struct_ops_btf_id()
19782 mname, st_ops->name); in check_struct_ops_btf_id()
19789 env->ops = st_ops->verifier_ops; in check_struct_ops_btf_id()
/openbmc/linux/net/bpf/
H A 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()
/openbmc/linux/tools/lib/bpf/
H A Dlibbpf.c526 struct bpf_struct_ops *st_ops; member
997 struct bpf_struct_ops *st_ops; in bpf_map__init_kern_struct_ops() local
1002 st_ops = map->st_ops; in bpf_map__init_kern_struct_ops()
1003 type = st_ops->type; in bpf_map__init_kern_struct_ops()
1004 tname = st_ops->tname; in bpf_map__init_kern_struct_ops()
1013 map->name, st_ops->type_id, kern_type_id, kern_vtype_id); in bpf_map__init_kern_struct_ops()
1018 st_ops->kern_vdata = calloc(1, kern_vtype->size); in bpf_map__init_kern_struct_ops()
1019 if (!st_ops->kern_vdata) in bpf_map__init_kern_struct_ops()
1022 data = st_ops->data; in bpf_map__init_kern_struct_ops()
1024 kern_data = st_ops->kern_vdata + kern_data_off; in bpf_map__init_kern_struct_ops()
[all …]
/openbmc/linux/arch/s390/include/asm/
H A Dpci.h72 u64 st_ops; member