Home
last modified time | relevance | path

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

/linux-6.15/kernel/bpf/
H A Dbpf_struct_ops.c335 struct bpf_struct_ops *st_ops = st_ops_desc->st_ops; in bpf_struct_ops_desc_init() local
347 st_ops->name); in bpf_struct_ops_desc_init()
352 if (!st_ops->cfi_stubs) { in bpf_struct_ops_desc_init()
401 st_ops->name); in bpf_struct_ops_desc_init()
408 mname, st_ops->name); in bpf_struct_ops_desc_init()
415 st_ops->name); in bpf_struct_ops_desc_init()
444 mname, st_ops->name); in bpf_struct_ops_desc_init()
457 if (st_ops->init(btf)) { in bpf_struct_ops_desc_init()
459 st_ops->name); in bpf_struct_ops_desc_init()
681 const struct bpf_struct_ops *st_ops = st_ops_desc->st_ops; in bpf_struct_ops_map_update_elem() local
[all …]
H A Dbtf.c9402 btf_add_struct_ops(struct btf *btf, struct bpf_struct_ops *st_ops, in btf_add_struct_ops() argument
9419 if (tab->ops[i].st_ops == st_ops) in btf_add_struct_ops()
9434 tab->ops[btf->struct_ops_tab->cnt].st_ops = st_ops; in btf_add_struct_ops()
9489 int __register_bpf_struct_ops(struct bpf_struct_ops *st_ops) in __register_bpf_struct_ops() argument
9495 btf = btf_get_module_btf(st_ops->owner); in __register_bpf_struct_ops()
9497 return check_btf_kconfigs(st_ops->owner, "struct_ops"); in __register_bpf_struct_ops()
9509 err = btf_add_struct_ops(btf, st_ops, log); in __register_bpf_struct_ops()
H A Dverifier.c22911 const struct bpf_struct_ops *st_ops; in check_struct_ops_btf_id() local
22946 st_ops = st_ops_desc->st_ops; in check_struct_ops_btf_id()
22952 member_idx, st_ops->name); in check_struct_ops_btf_id()
22962 mname, member_idx, st_ops->name); in check_struct_ops_btf_id()
22967 err = bpf_struct_ops_supported(st_ops, member_off); in check_struct_ops_btf_id()
22970 mname, st_ops->name); in check_struct_ops_btf_id()
22974 if (st_ops->check_member) { in check_struct_ops_btf_id()
22975 err = st_ops->check_member(t, member, prog); in check_struct_ops_btf_id()
22979 mname, st_ops->name); in check_struct_ops_btf_id()
23006 prog->aux->st_ops = st_ops; in check_struct_ops_btf_id()
[all …]
/linux-6.15/tools/testing/selftests/bpf/test_kmods/
H A Dbpf_testmod.c1012 static struct bpf_testmod_st_ops *st_ops; variable
1019 if (st_ops && st_ops->test_prologue) in bpf_kfunc_st_ops_test_prologue()
1020 ret = st_ops->test_prologue(args); in bpf_kfunc_st_ops_test_prologue()
1031 if (st_ops && st_ops->test_epilogue) in bpf_kfunc_st_ops_test_epilogue()
1032 ret = st_ops->test_epilogue(args); in bpf_kfunc_st_ops_test_epilogue()
1043 if (st_ops && st_ops->test_pro_epilogue) in bpf_kfunc_st_ops_test_pro_epilogue()
1044 ret = st_ops->test_pro_epilogue(args); in bpf_kfunc_st_ops_test_pro_epilogue()
1478 if (st_ops) { in st_ops_reg()
1483 st_ops = kdata; in st_ops_reg()
1493 st_ops = NULL; in st_ops_unreg()
/linux-6.15/net/bpf/
H 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-6.15/tools/lib/bpf/
H A Dlibbpf.c1147 st_ops = map->st_ops; in bpf_map__init_kern_struct_ops()
1170 data = st_ops->data; in bpf_map__init_kern_struct_ops()
1249 if (st_ops->progs[i] && st_ops->progs[i] != prog) in bpf_map__init_kern_struct_ops()
1430 map->st_ops = calloc(1, sizeof(*map->st_ops)); in init_struct_ops_maps()
1431 if (!map->st_ops) in init_struct_ops_maps()
1433 st_ops = map->st_ops; in init_struct_ops_maps()
1435 st_ops->progs = calloc(btf_vlen(type), sizeof(*st_ops->progs)); in init_struct_ops_maps()
1438 if (!st_ops->data || !st_ops->progs || !st_ops->kern_func_off) in init_struct_ops_maps()
8524 st_ops = map->st_ops; in bpf_map_prepare_vdata()
8535 kern_data = st_ops->kern_vdata + st_ops->kern_func_off[i]; in bpf_map_prepare_vdata()
[all …]
/linux-6.15/include/linux/
H A Dbpf.h1580 const struct bpf_struct_ops *st_ops; member
1858 struct bpf_struct_ops *st_ops; member
1886 #define register_bpf_struct_ops(st_ops, type) \ argument
1893 __register_bpf_struct_ops(st_ops); \
1898 int bpf_struct_ops_supported(const struct bpf_struct_ops *st_ops, u32 moff);
1946 #define register_bpf_struct_ops(st_ops, type) ({ (void *)(st_ops); 0; }) argument
1955 static inline int bpf_struct_ops_supported(const struct bpf_struct_ops *st_ops, u32 moff) in bpf_struct_ops_supported() argument
H A Dbtf.h530 int __register_bpf_struct_ops(struct bpf_struct_ops *st_ops);
/linux-6.15/arch/s390/include/asm/
H A Dpci.h75 u64 st_ops; member