Home
last modified time | relevance | path

Searched refs:kfunc (Results 1 – 12 of 12) sorted by relevance

/linux/tools/testing/selftests/bpf/verifier/
H A Dsleepable.c9 .kfunc = "bpf_fentry_test1",
22 .kfunc = "bpf_fentry_test1",
35 .kfunc = "bpf_fentry_test1",
48 .kfunc = "task",
60 .kfunc = "bpf",
73 .kfunc = "bpf_fentry_test1",
86 .kfunc = "sched_switch",
H A Datomic_fetch_add.c103 .kfunc = "bpf_fentry_test7",
/linux/tools/bpf/resolve_btfids/
H A Dmain.c158 struct kfunc { struct
169 struct kfunc *kfuncs; argument
910 static int push_kfunc(struct btf2btf_context *ctx, struct kfunc *kfunc) in push_kfunc() argument
912 struct kfunc *arr = ctx->kfuncs; in push_kfunc()
917 arr = realloc(arr, sizeof(struct kfunc) * cap); in push_kfunc()
924 ctx->kfuncs[ctx->nr_kfuncs++] = *kfunc; in push_kfunc()
998 struct kfunc kfunc; in collect_kfuncs() local
1029 kfunc.name = id->name; in collect_kfuncs()
1030 kfunc.btf_id = func_id; in collect_kfuncs()
1031 kfunc.flags = flags; in collect_kfuncs()
[all …]
/linux/tools/testing/selftests/bpf/
H A Dtest_verifier.c80 const char *kfunc; member
160 const char *kfunc; member
972 while (fixup_kfunc_btf_id->kfunc) { in fixup_prog_kfuncs()
979 fixup_kfunc_btf_id->kfunc, in fixup_prog_kfuncs()
989 fixup_kfunc_btf_id->kfunc, in fixup_prog_kfuncs()
1573 prog_type == BPF_PROG_TYPE_LSM) && test->kfunc) { in do_test_single()
1576 attach_btf_id = libbpf_find_vmlinux_btf_id(test->kfunc, in do_test_single()
1580 test->kfunc); in do_test_single()
/linux/Documentation/bpf/
H A Dcpumasks.rst186 As we'll see below, any kfunc that mutates its cpumask argument will take a
381 could easily be encapsulated in a new kfunc if and when required. If you'd like
383 do add a new cpumask kfunc, please document it here, and add any relevant
H A Dbpf_licensing.rst85 directly via unstable interface also known as "kfunc".
H A Dgraph_ds_impl.rst166 kfunc, or via ``bpf_obj_drop``, which ``free``'s the pointee
257 ``bpf_rbtree_remove``. The logic here being that any graph API kfunc which:
H A Dbpf_iterators.rst67 enforced at kfunc registration point by the kernel.
74 Constructor kfunc is marked with KF_ITER_NEW flag.
82 NULL-returning kfunc, of course).
/linux/Documentation/networking/
H A Dxdp-rx-metadata.rst39 to indicate the device driver have not implemented this kfunc.
119 It is possible to query which kfunc the particular netdev implements via
/linux/Documentation/hid/
H A Dhid-bpf.rst379 /* HID-BPF kfunc API definitions */
460 /* some more HID-BPF kfunc API definitions */
/linux/kernel/bpf/
H A Dverifier.c3379 struct bpf_kfunc_meta *kfunc) in fetch_kfunc_meta() argument
3429 memset(kfunc, 0, sizeof(*kfunc)); in fetch_kfunc_meta()
3430 kfunc->btf = btf; in fetch_kfunc_meta()
3431 kfunc->id = func_id; in fetch_kfunc_meta()
3432 kfunc->name = func_name; in fetch_kfunc_meta()
3433 kfunc->proto = func_proto; in fetch_kfunc_meta()
3434 kfunc->flags = kfunc_flags; in fetch_kfunc_meta()
3445 struct bpf_kfunc_meta kfunc; in add_kfunc_call() local
3504 err = fetch_kfunc_meta(env, func_id, offset, &kfunc); in add_kfunc_call()
3508 addr = kallsyms_lookup_name(kfunc.name); in add_kfunc_call()
[all …]
/linux/tools/bpf/bpftool/Documentation/
H A Dbpftool-prog.rst185 at runtime with the **bpf_stream_vprintk_impl**\ () kfunc. The kernel may write