Searched refs:st_ops (Results 1 – 9 of 9) sorted by relevance
| /linux/kernel/bpf/ |
| H A D | bpf_struct_ops.c | 324 int bpf_struct_ops_supported(const struct bpf_struct_ops *st_ops, u32 moff) in bpf_struct_ops_supported() argument 326 void *func_ptr = *(void **)(st_ops->cfi_stubs + moff); in bpf_struct_ops_supported() 335 struct bpf_struct_ops *st_ops = st_ops_desc->st_ops; in bpf_struct_ops_desc_init() local 344 if (strlen(st_ops->name) + VALUE_PREFIX_LEN >= in bpf_struct_ops_desc_init() 347 st_ops->name); in bpf_struct_ops_desc_init() 350 sprintf(value_name, "%s%s", VALUE_PREFIX, st_ops->name); in bpf_struct_ops_desc_init() 352 if (!st_ops->cfi_stubs) { in bpf_struct_ops_desc_init() 353 pr_warn("struct_ops for %s has no cfi_stubs\n", st_ops->name); in bpf_struct_ops_desc_init() 357 type_id = btf_find_by_name_kind(btf, st_ops->name, in bpf_struct_ops_desc_init() 361 st_ops->name, btf_get_name(btf)); in bpf_struct_ops_desc_init() [all …]
|
| H A D | btf.c | 9612 btf_add_struct_ops(struct btf *btf, struct bpf_struct_ops *st_ops, in btf_add_struct_ops() argument 9628 if (tab->ops[i].st_ops == st_ops) in btf_add_struct_ops() 9642 tab->ops[btf->struct_ops_tab->cnt].st_ops = st_ops; in btf_add_struct_ops() 9697 int __register_bpf_struct_ops(struct bpf_struct_ops *st_ops) in __register_bpf_struct_ops() argument 9703 btf = btf_get_module_btf(st_ops->owner); in __register_bpf_struct_ops() 9705 return check_btf_kconfigs(st_ops->owner, "struct_ops"); in __register_bpf_struct_ops() 9717 err = btf_add_struct_ops(btf, st_ops, log); in __register_bpf_struct_ops()
|
| H A D | verifier.c | 24716 const struct bpf_struct_ops *st_ops; in check_struct_ops_btf_id() local 24751 st_ops = st_ops_desc->st_ops; in check_struct_ops_btf_id() 24757 member_idx, st_ops->name); in check_struct_ops_btf_id() 24767 mname, member_idx, st_ops->name); in check_struct_ops_btf_id() 24772 err = bpf_struct_ops_supported(st_ops, member_off); in check_struct_ops_btf_id() 24775 mname, st_ops->name); in check_struct_ops_btf_id() 24779 if (st_ops->check_member) { in check_struct_ops_btf_id() 24780 err = st_ops->check_member(t, member, prog); in check_struct_ops_btf_id() 24784 mname, st_ops->name); in check_struct_ops_btf_id() 24811 prog->aux->st_ops = st_ops; in check_struct_ops_btf_id() [all …]
|
| /linux/tools/testing/selftests/bpf/test_kmods/ |
| H A D | bpf_testmod.c | 1147 static struct bpf_testmod_st_ops *st_ops; variable 1154 if (st_ops && st_ops->test_prologue) in bpf_kfunc_st_ops_test_prologue() 1155 ret = st_ops->test_prologue(args); in bpf_kfunc_st_ops_test_prologue() 1166 if (st_ops && st_ops->test_epilogue) in bpf_kfunc_st_ops_test_epilogue() 1167 ret = st_ops->test_epilogue(args); in bpf_kfunc_st_ops_test_epilogue() 1178 if (st_ops && st_ops->test_pro_epilogue) in bpf_kfunc_st_ops_test_pro_epilogue() 1179 ret = st_ops->test_pro_epilogue(args); in bpf_kfunc_st_ops_test_pro_epilogue() 1654 if (st_ops) { in st_ops_reg() 1659 st_ops = kdata; in st_ops_reg() 1669 st_ops = NULL; in st_ops_unreg() [all …]
|
| /linux/net/bpf/ |
| H A D | bpf_dummy_struct_ops.c | 132 const struct bpf_struct_ops *st_ops = &bpf_bpf_dummy_ops; in bpf_struct_ops_test_run() local 179 &st_ops->func_models[op_idx], in bpf_struct_ops_test_run()
|
| /linux/tools/lib/bpf/ |
| H A D | libbpf.c | 586 struct bpf_struct_ops *st_ops; member 1145 type = btf__type_by_id(obj->btf, map->st_ops->type_id); in bpf_object_adjust_struct_ops_autoload() 1148 slot_prog = map->st_ops->progs[k]; in bpf_object_adjust_struct_ops_autoload() 1172 struct bpf_struct_ops *st_ops; in bpf_map__init_kern_struct_ops() local 1179 st_ops = map->st_ops; in bpf_map__init_kern_struct_ops() 1180 type = btf__type_by_id(btf, st_ops->type_id); in bpf_map__init_kern_struct_ops() 1192 map->name, st_ops->type_id, kern_type_id, kern_vtype_id); in bpf_map__init_kern_struct_ops() 1198 st_ops->kern_vdata = calloc(1, kern_vtype->size); in bpf_map__init_kern_struct_ops() 1199 if (!st_ops->kern_vdata) in bpf_map__init_kern_struct_ops() 1202 data = st_ops->data; in bpf_map__init_kern_struct_ops() [all …]
|
| /linux/arch/s390/include/asm/ |
| H A D | pci.h | 76 u64 st_ops; member
|
| /linux/include/linux/ |
| H A D | bpf.h | 1719 const struct bpf_struct_ops *st_ops; member 2016 struct bpf_struct_ops *st_ops; member 2078 #define register_bpf_struct_ops(st_ops, type) \ argument 2085 __register_bpf_struct_ops(st_ops); \ 2090 int bpf_struct_ops_supported(const struct bpf_struct_ops *st_ops, u32 moff); 2142 #define register_bpf_struct_ops(st_ops, type) ({ (void *)(st_ops); 0; }) argument 2151 static inline int bpf_struct_ops_supported(const struct bpf_struct_ops *st_ops, u32 moff) in bpf_struct_ops_supported() argument
|
| /linux/net/sched/ |
| H A D | bpf_qdisc.c | 327 if (prog->aux->st_ops != &bpf_Qdisc_ops) in bpf_qdisc_kfunc_filter()
|