Home
last modified time | relevance | path

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

/linux-6.1.9/kernel/bpf/
Dbpf_struct_ops.c33 const struct bpf_struct_ops *st_ops; member
108 struct bpf_struct_ops *st_ops; in bpf_struct_ops_init() local
127 st_ops = bpf_struct_ops[i]; in bpf_struct_ops_init()
129 if (strlen(st_ops->name) + VALUE_PREFIX_LEN >= in bpf_struct_ops_init()
132 st_ops->name); in bpf_struct_ops_init()
135 sprintf(value_name, "%s%s", VALUE_PREFIX, st_ops->name); in bpf_struct_ops_init()
145 type_id = btf_find_by_name_kind(btf, st_ops->name, in bpf_struct_ops_init()
149 st_ops->name); in bpf_struct_ops_init()
155 btf_type_vlen(t), st_ops->name); in bpf_struct_ops_init()
165 st_ops->name); in bpf_struct_ops_init()
[all …]
Dverifier.c14781 const struct bpf_struct_ops *st_ops; in check_struct_ops_btf_id() local
14793 st_ops = bpf_struct_ops_find(btf_id); in check_struct_ops_btf_id()
14794 if (!st_ops) { in check_struct_ops_btf_id()
14800 t = st_ops->type; in check_struct_ops_btf_id()
14804 member_idx, st_ops->name); in check_struct_ops_btf_id()
14814 mname, member_idx, st_ops->name); in check_struct_ops_btf_id()
14818 if (st_ops->check_member) { in check_struct_ops_btf_id()
14819 int err = st_ops->check_member(t, member); in check_struct_ops_btf_id()
14823 mname, st_ops->name); in check_struct_ops_btf_id()
14830 env->ops = st_ops->verifier_ops; in check_struct_ops_btf_id()
/linux-6.1.9/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-6.1.9/tools/lib/bpf/
Dlibbpf.c507 struct bpf_struct_ops *st_ops; member
1012 struct bpf_struct_ops *st_ops; in bpf_map__init_kern_struct_ops() local
1017 st_ops = map->st_ops; in bpf_map__init_kern_struct_ops()
1018 type = st_ops->type; in bpf_map__init_kern_struct_ops()
1019 tname = st_ops->tname; in bpf_map__init_kern_struct_ops()
1028 map->name, st_ops->type_id, kern_type_id, kern_vtype_id); in bpf_map__init_kern_struct_ops()
1033 st_ops->kern_vdata = calloc(1, kern_vtype->size); in bpf_map__init_kern_struct_ops()
1034 if (!st_ops->kern_vdata) in bpf_map__init_kern_struct_ops()
1037 data = st_ops->data; in bpf_map__init_kern_struct_ops()
1039 kern_data = st_ops->kern_vdata + kern_data_off; in bpf_map__init_kern_struct_ops()
[all …]
/linux-6.1.9/arch/s390/include/asm/
Dpci.h72 u64 st_ops; member