Home
last modified time | relevance | path

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

/linux/kernel/bpf/
A Dbpf_struct_ops.c316 struct bpf_struct_ops *st_ops = st_ops_desc->st_ops; in bpf_struct_ops_desc_init() local
328 st_ops->name); in bpf_struct_ops_desc_init()
333 if (!st_ops->cfi_stubs) { in bpf_struct_ops_desc_init()
379 st_ops->name); in bpf_struct_ops_desc_init()
386 mname, st_ops->name); in bpf_struct_ops_desc_init()
401 mname, st_ops->name); in bpf_struct_ops_desc_init()
413 if (st_ops->init(btf)) { in bpf_struct_ops_desc_init()
415 st_ops->name); in bpf_struct_ops_desc_init()
594 const struct bpf_struct_ops *st_ops = st_ops_desc->st_ops; in bpf_struct_ops_map_update_elem() local
721 &st_ops->func_models[i], in bpf_struct_ops_map_update_elem()
[all …]
A Dbtf.c9131 btf_add_struct_ops(struct btf *btf, struct bpf_struct_ops *st_ops, in btf_add_struct_ops() argument
9148 if (tab->ops[i].st_ops == st_ops) in btf_add_struct_ops()
9163 tab->ops[btf->struct_ops_tab->cnt].st_ops = st_ops; in btf_add_struct_ops()
9218 int __register_bpf_struct_ops(struct bpf_struct_ops *st_ops) in __register_bpf_struct_ops() argument
9224 btf = btf_get_module_btf(st_ops->owner); in __register_bpf_struct_ops()
9226 return check_btf_kconfigs(st_ops->owner, "struct_ops"); in __register_bpf_struct_ops()
9238 err = btf_add_struct_ops(btf, st_ops, log); in __register_bpf_struct_ops()
A Dverifier.c21741 const struct bpf_struct_ops *st_ops; in check_struct_ops_btf_id() local
21775 st_ops = st_ops_desc->st_ops; in check_struct_ops_btf_id()
21781 member_idx, st_ops->name); in check_struct_ops_btf_id()
21791 mname, member_idx, st_ops->name); in check_struct_ops_btf_id()
21795 err = bpf_struct_ops_supported(st_ops, __btf_member_bit_offset(t, member) / 8); in check_struct_ops_btf_id()
21798 mname, st_ops->name); in check_struct_ops_btf_id()
21802 if (st_ops->check_member) { in check_struct_ops_btf_id()
21803 err = st_ops->check_member(t, member, prog); in check_struct_ops_btf_id()
21807 mname, st_ops->name); in check_struct_ops_btf_id()
21820 env->ops = st_ops->verifier_ops; in check_struct_ops_btf_id()
/linux/tools/testing/selftests/bpf/bpf_testmod/
A Dbpf_testmod.c973 static struct bpf_testmod_st_ops *st_ops; variable
980 if (st_ops && st_ops->test_prologue) in bpf_kfunc_st_ops_test_prologue()
981 ret = st_ops->test_prologue(args); in bpf_kfunc_st_ops_test_prologue()
992 if (st_ops && st_ops->test_epilogue) in bpf_kfunc_st_ops_test_epilogue()
993 ret = st_ops->test_epilogue(args); in bpf_kfunc_st_ops_test_epilogue()
1004 if (st_ops && st_ops->test_pro_epilogue) in bpf_kfunc_st_ops_test_pro_epilogue()
1005 ret = st_ops->test_pro_epilogue(args); in bpf_kfunc_st_ops_test_pro_epilogue()
1272 if (st_ops) { in st_ops_reg()
1277 st_ops = kdata; in st_ops_reg()
1287 st_ops = NULL; in st_ops_unreg()
/linux/net/bpf/
A Dbpf_dummy_struct_ops.c132 const struct bpf_struct_ops *st_ops = &bpf_bpf_dummy_ops; in bpf_struct_ops_test_run() local
178 &st_ops->func_models[op_idx], in bpf_struct_ops_test_run()
/linux/tools/lib/bpf/
A Dlibbpf.c1124 st_ops = map->st_ops; in bpf_map__init_kern_struct_ops()
1147 data = st_ops->data; in bpf_map__init_kern_struct_ops()
1226 if (st_ops->progs[i] && st_ops->progs[i] != prog) in bpf_map__init_kern_struct_ops()
1407 map->st_ops = calloc(1, sizeof(*map->st_ops)); in init_struct_ops_maps()
1408 if (!map->st_ops) in init_struct_ops_maps()
1410 st_ops = map->st_ops; in init_struct_ops_maps()
1412 st_ops->progs = calloc(btf_vlen(type), sizeof(*st_ops->progs)); in init_struct_ops_maps()
1415 if (!st_ops->data || !st_ops->progs || !st_ops->kern_func_off) in init_struct_ops_maps()
8453 st_ops = map->st_ops; in bpf_map_prepare_vdata()
8464 kern_data = st_ops->kern_vdata + st_ops->kern_func_off[i]; in bpf_map_prepare_vdata()
[all …]
/linux/arch/s390/include/asm/
A Dpci.h72 u64 st_ops; member
/linux/include/linux/
A Dbpf.h1780 struct bpf_struct_ops *st_ops; member
1808 #define register_bpf_struct_ops(st_ops, type) \ argument
1815 __register_bpf_struct_ops(st_ops); \
1820 int bpf_struct_ops_supported(const struct bpf_struct_ops *st_ops, u32 moff);
1868 #define register_bpf_struct_ops(st_ops, type) ({ (void *)(st_ops); 0; }) argument
1877 static inline int bpf_struct_ops_supported(const struct bpf_struct_ops *st_ops, u32 moff) in bpf_struct_ops_supported() argument
A Dbtf.h521 int __register_bpf_struct_ops(struct bpf_struct_ops *st_ops);

Completed in 110 milliseconds