| /linux/tools/bpf/resolve_btfids/ |
| H A D | main.c | 188 struct kfunc { struct 1000 static int push_kfunc(struct btf2btf_context *ctx, struct kfunc *kfunc) in push_kfunc() argument 1004 struct kfunc *k; in push_kfunc() 1013 k = rb_entry(parent, struct kfunc, rb_node); in push_kfunc() 1015 if (kfunc->btf_id < k->btf_id) { in push_kfunc() 1017 } else if (kfunc->btf_id > k->btf_id) { in push_kfunc() 1019 } else if (k->flags == kfunc->flags) { in push_kfunc() 1023 kfunc->name, k->flags, kfunc->flags); in push_kfunc() 1032 *k = *kfunc; in push_kfunc() 1042 struct kfunc *kfunc; in free_kfuncs() local [all …]
|
| /linux/tools/testing/selftests/bpf/verifier/ |
| H A D | sleepable.c | 9 .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 = "sys_enter", 99 .kfunc = "sched_switch",
|
| H A D | atomic_fetch_add.c | 103 .kfunc = "bpf_fentry_test7",
|
| /linux/Documentation/bpf/ |
| H A D | kfuncs.rst | 18 2. Defining a kfunc 24 valid context. To enforce this, visibility of a kfunc can be per program type. 29 2.1 Creating a wrapper kfunc 32 When defining a wrapper kfunc, the wrapper function should have extern linkage. 33 This prevents the compiler from optimizing away dead code, as this wrapper kfunc 35 prototype in a header for the wrapper kfunc. 49 A wrapper kfunc is often needed when we need to annotate parameters of the 50 kfunc. Otherwise one may directly make the kfunc visible to the BPF program by 53 2.2 kfunc Parameters 64 2. Pointers which were returned from a KF_ACQUIRE kfunc. [all …]
|
| H A D | cpumasks.rst | 186 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 D | bpf_licensing.rst | 85 directly via unstable interface also known as "kfunc".
|
| H A D | graph_ds_impl.rst | 166 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 D | signing.rst | 43 - **kfunc and ksym references** are resolved to ids/addresses in the running 178 module kfunc, is rejected when it would be bound. Together with the fold rule
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_verifier.c | 80 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/translations/it_IT/process/ |
| H A D | changes.rst | 152 Dalla versione 7.0, le kfunc annotate con KF_IMPLICIT_ARGS richiedono pahole 153 v1.26 o successivo. Senza questa versione, tali kfunc avranno prototipi BTF 155 l'errore "func_proto incompatible with vmlinux". Molte kfunc in sched_ext sono
|
| /linux/kernel/bpf/ |
| H A D | verifier.c | 1123 "belongs to the %s IRQ kfunc family. Save and restore operations " in unmark_stack_slot_irq_flag() 1127 "Restore the flag with the matching IRQ restore kfunc for the save " in unmark_stack_slot_irq_flag() 2566 verbose(env, "kfunc fd_idx %u out of bounds, fd_array_cnt %u\n", in fd_array_get_btf_continuous() 2572 verbose(env, "kfunc fd_idx %u is not a module BTF\n", idx); in fd_array_get_btf_continuous() 2607 verbose(env, "kfunc offset > 0 without fd_array is invalid\n"); in fd_array_get_btf() 2633 verbose(env, "BTF fd for kfunc is not a module BTF\n"); in __find_kfunc_desc_btf() 2741 struct bpf_kfunc_meta *kfunc) in fetch_kfunc_meta() argument 2762 * kfunc_id_set. This most likely indicates an invalid kfunc in fetch_kfunc_meta() 2764 * and let the caller decide what to do with NULL kfunc->flags. in fetch_kfunc_meta() 2777 * An actual prototype of a kfunc wit in fetch_kfunc_meta() 2811 struct bpf_kfunc_meta kfunc; bpf_add_kfunc_call() local 12415 struct bpf_kfunc_meta kfunc; kfunc_spin_allowed() local 13393 struct bpf_kfunc_meta kfunc; bpf_fetch_kfunc_arg_meta() local [all...] |
| /linux/Documentation/hid/ |
| H A D | hid-bpf.rst | 379 /* HID-BPF kfunc API definitions */ 460 /* some more HID-BPF kfunc API definitions */
|
| /linux/tools/bpf/bpftool/Documentation/ |
| H A D | bpftool-prog.rst | 185 at runtime with the **bpf_stream_vprintk_impl**\ () kfunc. The kernel may write
|