| /linux/tools/bpf/resolve_btfids/ |
| H A D | main.c | 64 * each such kfunc it: 71 * These kfunc annotations were historically produced by pahole. 211 struct kfunc { in eprintf() 1259 static int push_kfunc(struct btf2btf_context *ctx, struct kfunc *kfunc) in process_kfunc_with_implicit_args() 1263 struct kfunc *k; in process_kfunc_with_implicit_args() 1266 * Dedup by BTF ID: collecting the same kfunc twice is a no-op, in process_kfunc_with_implicit_args() 1267 * UNLESS the kfunc flags are inconsistent, in which case we in process_kfunc_with_implicit_args() 1268 * fail hard because it indicates a bug in a kfunc set declaration. in process_kfunc_with_implicit_args() 1272 k = rb_entry(parent, struct kfunc, rb_nod in process_kfunc_with_implicit_args() 188 struct kfunc { global() struct 200 flagskfunc global() argument 1000 push_kfunc(struct btf2btf_context * ctx,struct kfunc * kfunc) push_kfunc() argument 1042 struct kfunc *kfunc; free_kfuncs() local 1114 struct kfunc kfunc; collect_kfuncs() local 1218 process_kfunc_with_implicit_args(struct btf2btf_context * ctx,struct kfunc * kfunc) process_kfunc_with_implicit_args() argument 1320 is_arena_arg(const struct btf * btf,const struct kfunc * kfunc,const struct btf_param * param,u32 idx) is_arena_arg() argument 1336 arena_tag_ptr(struct btf * btf,u32 ptr_id,struct kfunc * kfunc) arena_tag_ptr() argument 1369 add_arena_tagged_proto(struct btf * btf,struct kfunc * kfunc) add_arena_tagged_proto() argument 1441 process_kfunc_with_arena_attrs(struct btf2btf_context * ctx,struct kfunc * kfunc) process_kfunc_with_arena_attrs() argument 1482 struct kfunc *kfunc = rb_entry(next, struct kfunc, rb_node); btf2btf() 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 Parameter [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 179 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/Documentation/admin-guide/ |
| H A D | binfmt-misc.rst | 203 interpreter by calling the ``bpf_binprm_set_interp()`` kfunc with an 231 ``bpf_binprm_select_interp()`` kfunc, and every exec runs a clone of the 263 the ``bpf_binprm_set_interp_arg()`` kfunc. It is inserted between the 270 ``load`` program with the ``bpf_binprm_set_flags()`` kfunc, so a single
|
| /linux/kernel/bpf/ |
| H A D | verifier.c | 312 /* Normalize helper register numbers and kfunc argument numbers to ABI slots. */ 1234 "belongs to the %s IRQ kfunc family. Save and restore operations " in is_stack_slot_special() 1238 "Restore the flag with the matching IRQ restore kfunc for the save " 2842 verbose(env, "kfunc fd_idx %u out of bounds, fd_array_cnt %u\n", in bpf_add_kfunc_call() 2848 verbose(env, "kfunc fd_idx %u is not a module BTF\n", idx); in bpf_add_kfunc_call() 2883 verbose(env, "kfunc offset > 0 without fd_array is invalid\n"); in bpf_add_kfunc_call() 2909 verbose(env, "BTF fd for kfunc is not a module BTF\n"); in bpf_add_kfunc_call() 3017 struct bpf_kfunc_meta *kfunc) in check_subprogs() 3038 * kfunc_id_set. This most likely indicates an invalid kfunc in check_subprogs() 3040 * and let the caller decide what to do with NULL kfunc in check_subprogs() 2741 fetch_kfunc_meta(struct bpf_verifier_env * env,s32 func_id,s16 offset,struct bpf_kfunc_meta * kfunc) fetch_kfunc_meta() argument 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 | 186 at runtime with the **bpf_stream_vprintk_impl**\ () kfunc. The kernel may write
|