Searched refs:st_ops (Results 1 – 11 of 11) sorted by relevance
| /linux/kernel/bpf/ |
| H A D | bpf_struct_ops.c | 351 int bpf_struct_ops_supported(const struct bpf_struct_ops *st_ops, u32 moff) in bpf_struct_ops_supported() argument 353 void *func_ptr = *(void **)(st_ops->cfi_stubs + moff); in bpf_struct_ops_supported() 362 struct bpf_struct_ops *st_ops = st_ops_desc->st_ops; in bpf_struct_ops_desc_init() local 371 if (strlen(st_ops->name) + VALUE_PREFIX_LEN >= in bpf_struct_ops_desc_init() 374 st_ops->name); in bpf_struct_ops_desc_init() 377 sprintf(value_name, "%s%s", VALUE_PREFIX, st_ops->name); in bpf_struct_ops_desc_init() 379 if (!st_ops->cfi_stubs) { in bpf_struct_ops_desc_init() 380 pr_warn("struct_ops for %s has no cfi_stubs\n", st_ops->name); in bpf_struct_ops_desc_init() 384 type_id = btf_find_by_name_kind(btf, st_ops->name, in bpf_struct_ops_desc_init() 388 st_ops->name, btf_get_name(btf)); in bpf_struct_ops_desc_init() [all …]
|
| H A D | btf.c | 9891 btf_add_struct_ops(struct btf *btf, struct bpf_struct_ops *st_ops, in btf_add_struct_ops() argument 9907 if (tab->ops[i].st_ops == st_ops) in btf_add_struct_ops() 9921 tab->ops[btf->struct_ops_tab->cnt].st_ops = st_ops; in btf_add_struct_ops() 9976 int __register_bpf_struct_ops(struct bpf_struct_ops *st_ops) in __register_bpf_struct_ops() argument 9982 btf = btf_get_module_btf(st_ops->owner); in __register_bpf_struct_ops() 9984 return check_btf_kconfigs(st_ops->owner, "struct_ops"); in __register_bpf_struct_ops() 9996 err = btf_add_struct_ops(btf, st_ops, log); in __register_bpf_struct_ops()
|
| H A D | verifier.c | 19557 const struct bpf_struct_ops *st_ops; in check_struct_ops_btf_id() local 19592 st_ops = st_ops_desc->st_ops; in check_struct_ops_btf_id() 19598 member_idx, st_ops->name); in check_struct_ops_btf_id() 19608 mname, member_idx, st_ops->name); in check_struct_ops_btf_id() 19613 err = bpf_struct_ops_supported(st_ops, member_off); in check_struct_ops_btf_id() 19616 mname, st_ops->name); in check_struct_ops_btf_id() 19620 if (st_ops->check_member) { in check_struct_ops_btf_id() 19621 err = st_ops->check_member(t, member, prog); in check_struct_ops_btf_id() 19625 mname, st_ops->name); in check_struct_ops_btf_id() 19665 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 | 1405 static struct bpf_testmod_st_ops *st_ops; variable 1412 if (st_ops && st_ops->test_prologue) in bpf_kfunc_st_ops_test_prologue() 1413 ret = st_ops->test_prologue(args); in bpf_kfunc_st_ops_test_prologue() 1424 if (st_ops && st_ops->test_epilogue) in bpf_kfunc_st_ops_test_epilogue() 1425 ret = st_ops->test_epilogue(args); in bpf_kfunc_st_ops_test_epilogue() 1436 if (st_ops && st_ops->test_pro_epilogue) in bpf_kfunc_st_ops_test_pro_epilogue() 1437 ret = st_ops->test_pro_epilogue(args); in bpf_kfunc_st_ops_test_pro_epilogue() 1928 if (st_ops) { in st_ops_reg() 1933 st_ops = kdata; in st_ops_reg() 1943 st_ops = NULL; in st_ops_unreg() [all …]
|
| /linux/tools/lib/bpf/ |
| H A D | libbpf.c | 593 struct bpf_struct_ops *st_ops; member 1153 type = btf__type_by_id(obj->btf, map->st_ops->type_id); in bpf_object_adjust_struct_ops_autoload() 1156 slot_prog = map->st_ops->progs[k]; in bpf_object_adjust_struct_ops_autoload() 1180 struct bpf_struct_ops *st_ops; in bpf_map__init_kern_struct_ops() local 1187 st_ops = map->st_ops; in bpf_map__init_kern_struct_ops() 1188 type = btf__type_by_id(btf, st_ops->type_id); in bpf_map__init_kern_struct_ops() 1200 map->name, st_ops->type_id, kern_type_id, kern_vtype_id); in bpf_map__init_kern_struct_ops() 1206 st_ops->kern_vdata = calloc(1, kern_vtype->size); in bpf_map__init_kern_struct_ops() 1207 if (!st_ops->kern_vdata) in bpf_map__init_kern_struct_ops() 1210 data = st_ops->data; in bpf_map__init_kern_struct_ops() [all …]
|
| /linux/fs/ |
| H A D | bpf_fs_kfuncs.c | 448 if (!prog->aux->st_ops) in BTF_ID_FLAGS()
|
| /linux/arch/s390/include/asm/ |
| H A D | pci.h | 76 u64 st_ops; member
|
| /linux/include/linux/ |
| H A D | bpf.h | 1807 const struct bpf_struct_ops *st_ops; member 2135 struct bpf_struct_ops *st_ops; member 2209 #define register_bpf_struct_ops(st_ops, type) \ argument 2216 __register_bpf_struct_ops(st_ops); \ 2221 int bpf_struct_ops_supported(const struct bpf_struct_ops *st_ops, u32 moff); 2276 #define register_bpf_struct_ops(st_ops, type) ({ (void *)(st_ops); 0; }) argument 2285 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 | 540 int __register_bpf_struct_ops(struct bpf_struct_ops *st_ops);
|
| /linux/net/sched/ |
| H A D | bpf_qdisc.c | 327 if (prog->aux->st_ops != &bpf_Qdisc_ops) in bpf_qdisc_kfunc_filter()
|
| /linux/kernel/sched/ext/ |
| H A D | ext.c | 10842 if (!prog->aux->st_ops) in scx_kfunc_context_filter() 10854 if (prog->aux->st_ops != &bpf_sched_ext_ops && in scx_kfunc_context_filter() 10855 prog->aux->st_ops != &bpf_sched_ext_ops_cid) in scx_kfunc_context_filter() 10864 if (prog->aux->st_ops == &bpf_sched_ext_ops_cid && in_cpu_only) in scx_kfunc_context_filter()
|