Searched refs:st_ops (Results 1 – 10 of 10) 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 | 9447 btf_add_struct_ops(struct btf *btf, struct bpf_struct_ops *st_ops, in btf_add_struct_ops() argument 9463 if (tab->ops[i].st_ops == st_ops) in btf_add_struct_ops() 9477 tab->ops[btf->struct_ops_tab->cnt].st_ops = st_ops; in btf_add_struct_ops() 9532 int __register_bpf_struct_ops(struct bpf_struct_ops *st_ops) in __register_bpf_struct_ops() argument 9538 btf = btf_get_module_btf(st_ops->owner); in __register_bpf_struct_ops() 9540 return check_btf_kconfigs(st_ops->owner, "struct_ops"); in __register_bpf_struct_ops() 9552 err = btf_add_struct_ops(btf, st_ops, log); in __register_bpf_struct_ops()
|
| H A D | verifier.c | 23386 const struct bpf_struct_ops *st_ops; in check_struct_ops_btf_id() local 23421 st_ops = st_ops_desc->st_ops; in check_struct_ops_btf_id() 23427 member_idx, st_ops->name); in check_struct_ops_btf_id() 23437 mname, member_idx, st_ops->name); in check_struct_ops_btf_id() 23442 err = bpf_struct_ops_supported(st_ops, member_off); in check_struct_ops_btf_id() 23445 mname, st_ops->name); in check_struct_ops_btf_id() 23449 if (st_ops->check_member) { in check_struct_ops_btf_id() 23450 err = st_ops->check_member(t, member, prog); in check_struct_ops_btf_id() 23454 mname, st_ops->name); in check_struct_ops_btf_id() 23481 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 | 1066 static struct bpf_testmod_st_ops *st_ops; variable 1073 if (st_ops && st_ops->test_prologue) in bpf_kfunc_st_ops_test_prologue() 1074 ret = st_ops->test_prologue(args); in bpf_kfunc_st_ops_test_prologue() 1085 if (st_ops && st_ops->test_epilogue) in bpf_kfunc_st_ops_test_epilogue() 1086 ret = st_ops->test_epilogue(args); in bpf_kfunc_st_ops_test_epilogue() 1097 if (st_ops && st_ops->test_pro_epilogue) in bpf_kfunc_st_ops_test_pro_epilogue() 1098 ret = st_ops->test_pro_epilogue(args); in bpf_kfunc_st_ops_test_pro_epilogue() 1535 if (st_ops) { in st_ops_reg() 1540 st_ops = kdata; in st_ops_reg() 1550 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 | 566 struct bpf_struct_ops *st_ops; member 1112 type = btf__type_by_id(obj->btf, map->st_ops->type_id); in bpf_object_adjust_struct_ops_autoload() 1115 slot_prog = map->st_ops->progs[k]; in bpf_object_adjust_struct_ops_autoload() 1139 struct bpf_struct_ops *st_ops; in bpf_map__init_kern_struct_ops() local 1146 st_ops = map->st_ops; in bpf_map__init_kern_struct_ops() 1147 type = btf__type_by_id(btf, st_ops->type_id); in bpf_map__init_kern_struct_ops() 1159 map->name, st_ops->type_id, kern_type_id, kern_vtype_id); in bpf_map__init_kern_struct_ops() 1165 st_ops->kern_vdata = calloc(1, kern_vtype->size); in bpf_map__init_kern_struct_ops() 1166 if (!st_ops->kern_vdata) in bpf_map__init_kern_struct_ops() 1169 data = st_ops->data; in bpf_map__init_kern_struct_ops() [all …]
|
| /linux/include/linux/ |
| H A D | bpf.h | 1663 const struct bpf_struct_ops *st_ops; member 1948 struct bpf_struct_ops *st_ops; member 1976 #define register_bpf_struct_ops(st_ops, type) \ argument 1983 __register_bpf_struct_ops(st_ops); \ 1988 int bpf_struct_ops_supported(const struct bpf_struct_ops *st_ops, u32 moff); 2037 #define register_bpf_struct_ops(st_ops, type) ({ (void *)(st_ops); 0; }) argument 2046 static inline int bpf_struct_ops_supported(const struct bpf_struct_ops *st_ops, u32 moff) in bpf_struct_ops_supported() argument
|
| H A D | btf.h | 534 int __register_bpf_struct_ops(struct bpf_struct_ops *st_ops);
|
| /linux/arch/s390/include/asm/ |
| H A D | pci.h | 75 u64 st_ops; member
|
| /linux/net/sched/ |
| H A D | bpf_qdisc.c | 321 if (prog->aux->st_ops != &bpf_Qdisc_ops) in bpf_qdisc_kfunc_filter()
|