Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/test_kmods/
H A Dbpf_testmod.c1206 static struct bpf_testmod_st_ops *st_ops; in ctx_check_tasklet_fn()
1213 if (st_ops && st_ops->test_prologue) in ctx_check_irq_fn()
1214 ret = st_ops->test_prologue(args); in ctx_check_irq_fn()
1225 if (st_ops && st_ops->test_epilogue)
1226 ret = st_ops->test_epilogue(args); in BTF_ID_FLAGS()
1237 if (st_ops && st_ops->test_pro_epilogue) in BTF_ID_FLAGS()
1238 ret = st_ops in BTF_ID_FLAGS()
1147 static struct bpf_testmod_st_ops *st_ops; global() variable
1723 struct bpf_testmod_multi_st_ops *st_ops; multi_st_ops_find_nolock() local
1736 struct bpf_testmod_multi_st_ops *st_ops; bpf_kfunc_multi_st_ops_test_1() local
1752 struct bpf_testmod_multi_st_ops *st_ops; bpf_kfunc_multi_st_ops_test_1_assoc() local
1783 struct bpf_testmod_multi_st_ops *st_ops = multi_st_ops_reg() local
1811 struct bpf_testmod_multi_st_ops *st_ops; multi_st_ops_unreg() local
[all...]
/linux/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
179 &st_ops->func_models[op_idx], in bpf_struct_ops_test_run()
/linux/tools/lib/bpf/
H A Dlibbpf.c586 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 in bpf_map__init_kern_struct_ops()
1392 struct bpf_struct_ops *st_ops; init_struct_ops_maps() local
8835 struct bpf_struct_ops *st_ops; bpf_map_prepare_vdata() local
10198 struct bpf_struct_ops *st_ops; bpf_object__collect_st_ops_relos() local
[all...]
/linux/arch/s390/include/asm/
H A Dpci.h76 u64 st_ops; member
/linux/include/linux/
H A Dbpf.h1721 const struct bpf_struct_ops *st_ops; member
2022 struct bpf_struct_ops *st_ops; member
2084 #define register_bpf_struct_ops(st_ops, type) \ argument
2091 __register_bpf_struct_ops(st_ops); \
2096 int bpf_struct_ops_supported(const struct bpf_struct_ops *st_ops, u32 moff);
2148 #define register_bpf_struct_ops(st_ops, type) ({ (void *)(st_ops); 0; }) argument
2157 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 Dbpf_qdisc.c327 if (prog->aux->st_ops != &bpf_Qdisc_ops) in bpf_qdisc_kfunc_filter()
/linux/kernel/bpf/
H A Dbtf.c9678 btf_add_struct_ops(struct btf *btf, struct bpf_struct_ops *st_ops, in btf_add_struct_ops() argument
9694 if (tab->ops[i].st_ops == st_ops) in btf_add_struct_ops()
9708 tab->ops[btf->struct_ops_tab->cnt].st_ops = st_ops; in btf_add_struct_ops()
9763 int __register_bpf_struct_ops(struct bpf_struct_ops *st_ops) in __register_bpf_struct_ops() argument
9769 btf = btf_get_module_btf(st_ops->owner); in __register_bpf_struct_ops()
9771 return check_btf_kconfigs(st_ops->owner, "struct_ops"); in __register_bpf_struct_ops()
9783 err = btf_add_struct_ops(btf, st_ops, log); in __register_bpf_struct_ops()
H A Dverifier.c18946 const struct bpf_struct_ops *st_ops; in check_struct_ops_btf_id() local
18981 st_ops = st_ops_desc->st_ops; in check_struct_ops_btf_id()
18987 member_idx, st_ops->name); in check_struct_ops_btf_id()
18997 mname, member_idx, st_ops->name); in check_struct_ops_btf_id()
19002 err = bpf_struct_ops_supported(st_ops, member_off); in check_struct_ops_btf_id()
19005 mname, st_ops->name); in check_struct_ops_btf_id()
19009 if (st_ops->check_member) { in check_struct_ops_btf_id()
19010 err = st_ops->check_member(t, member, prog); in check_struct_ops_btf_id()
19014 mname, st_ops->name); in check_struct_ops_btf_id()
19041 prog->aux->st_ops = st_ops; in check_struct_ops_btf_id()
[all …]