Searched refs:kfunc_id (Results 1 – 5 of 5) sorted by relevance
/linux/include/linux/ |
A D | btf.h | 258 bool bpf_check_mod_kfunc_call(struct kfunc_btf_id_list *klist, u32 kfunc_id, 273 u32 kfunc_id, struct module *owner) in bpf_check_mod_kfunc_call() argument
|
A D | bpf.h | 1664 bool bpf_prog_test_check_kfunc_call(u32 kfunc_id, struct module *owner); 1908 static inline bool bpf_prog_test_check_kfunc_call(u32 kfunc_id, in bpf_prog_test_check_kfunc_call() argument
|
/linux/net/bpf/ |
A D | test_run.c | 245 bool bpf_prog_test_check_kfunc_call(u32 kfunc_id, struct module *owner) in BTF_ID() 247 if (btf_id_set_contains(&test_sk_kfunc_ids, kfunc_id)) in BTF_ID() 249 return bpf_check_mod_kfunc_call(&prog_test_kfunc_list, kfunc_id, owner); in BTF_ID()
|
/linux/tools/lib/bpf/ |
A D | libbpf.c | 7072 int local_func_proto_id, kfunc_proto_id, kfunc_id; in bpf_object__resolve_ksym_func_btf_id() local 7080 kfunc_id = find_ksym_btf_id(obj, ext->name, BTF_KIND_FUNC, &kern_btf, &mod_btf); in bpf_object__resolve_ksym_func_btf_id() 7081 if (kfunc_id < 0) { in bpf_object__resolve_ksym_func_btf_id() 7082 if (kfunc_id == -ESRCH && ext->is_weak) in bpf_object__resolve_ksym_func_btf_id() 7086 return kfunc_id; in bpf_object__resolve_ksym_func_btf_id() 7089 kern_func = btf__type_by_id(kern_btf, kfunc_id); in bpf_object__resolve_ksym_func_btf_id() 7122 ext->ksym.kernel_btf_id = kfunc_id; in bpf_object__resolve_ksym_func_btf_id() 7125 ext->name, kfunc_id); in bpf_object__resolve_ksym_func_btf_id()
|
/linux/kernel/bpf/ |
A D | btf.c | 6369 bool bpf_check_mod_kfunc_call(struct kfunc_btf_id_list *klist, u32 kfunc_id, in bpf_check_mod_kfunc_call() argument 6376 if (s->owner == owner && btf_id_set_contains(s->set, kfunc_id)) { in bpf_check_mod_kfunc_call()
|
Completed in 49 milliseconds