Home
last modified time | relevance | path

Searched refs:__bpf_kfunc (Results 1 – 25 of 33) sorted by relevance

12

/linux/kernel/bpf/
H A Dcpumask.c53 __bpf_kfunc struct bpf_cpumask *bpf_cpumask_create(void) in bpf_cpumask_create()
83 __bpf_kfunc struct bpf_cpumask *bpf_cpumask_acquire(struct bpf_cpumask *cpumask) in bpf_cpumask_acquire()
97 __bpf_kfunc void bpf_cpumask_release(struct bpf_cpumask *cpumask) in bpf_cpumask_release()
105 __bpf_kfunc void bpf_cpumask_release_dtor(void *cpumask) in bpf_cpumask_release_dtor()
121 __bpf_kfunc u32 bpf_cpumask_first(const struct cpumask *cpumask) in bpf_cpumask_first()
137 __bpf_kfunc u32 bpf_cpumask_first_zero(const struct cpumask *cpumask) in bpf_cpumask_first_zero()
154 __bpf_kfunc u32 bpf_cpumask_first_and(const struct cpumask *src1, in bpf_cpumask_first_and()
165 __bpf_kfunc void bpf_cpumask_set_cpu(u32 cpu, struct bpf_cpumask *cpumask) in bpf_cpumask_set_cpu()
178 __bpf_kfunc void bpf_cpumask_clear_cpu(u32 cpu, struct bpf_cpumask *cpumask) in bpf_cpumask_clear_cpu()
195 __bpf_kfunc bool bpf_cpumask_test_cpu(u32 cpu, const struct cpumask *cpumask) in bpf_cpumask_test_cpu()
[all …]
H A Dhelpers.c2350 __bpf_kfunc void *bpf_obj_new(u64 local_type_id__k, struct btf_struct_meta *meta) in bpf_obj_new()
2364 __bpf_kfunc void *bpf_obj_new_impl(u64 local_type_id__k, void *meta__ign) in bpf_obj_new_impl()
2380 __bpf_kfunc void *bpf_percpu_obj_new(u64 local_type_id__k, struct btf_struct_meta *meta) in bpf_percpu_obj_new()
2388 __bpf_kfunc void *bpf_percpu_obj_new_impl(u64 local_type_id__k, void *meta__ign) in bpf_percpu_obj_new_impl()
2424 __bpf_kfunc void bpf_obj_drop(void *p__alloc, struct btf_struct_meta *meta) in bpf_obj_drop()
2431 __bpf_kfunc void bpf_obj_drop_impl(void *p__alloc, void *meta__ign) in bpf_obj_drop_impl()
2443 __bpf_kfunc void bpf_percpu_obj_drop(void *p__alloc, struct btf_struct_meta *meta) in bpf_percpu_obj_drop()
2449 __bpf_kfunc void bpf_percpu_obj_drop_impl(void *p__alloc, void *meta__ign) in bpf_percpu_obj_drop_impl()
2464 __bpf_kfunc void *bpf_refcount_acquire(void *p__refcounted_kptr, struct btf_struct_meta *meta) in bpf_refcount_acquire()
2481 __bpf_kfunc void *bpf_refcount_acquire_impl(void *p__refcounted_kptr, void *meta__ign) in bpf_refcount_acquire_impl()
[all …]
H A Dcrypto.c145 __bpf_kfunc struct bpf_crypto_ctx *
242 __bpf_kfunc struct bpf_crypto_ctx *
258 __bpf_kfunc void bpf_crypto_ctx_release(struct bpf_crypto_ctx *ctx) in bpf_crypto_ctx_release()
264 __bpf_kfunc void bpf_crypto_ctx_release_dtor(void *ctx) in bpf_crypto_ctx_release_dtor()
319 __bpf_kfunc int bpf_crypto_decrypt(struct bpf_crypto_ctx *ctx, in bpf_crypto_decrypt()
340 __bpf_kfunc int bpf_crypto_encrypt(struct bpf_crypto_ctx *ctx, in bpf_crypto_encrypt()
H A Ddmabuf_iter.c161 __bpf_kfunc int bpf_iter_dmabuf_new(struct bpf_iter_dmabuf *it) in bpf_iter_dmabuf_new()
172 __bpf_kfunc struct dma_buf *bpf_iter_dmabuf_next(struct bpf_iter_dmabuf *it) in bpf_iter_dmabuf_next()
184 __bpf_kfunc void bpf_iter_dmabuf_destroy(struct bpf_iter_dmabuf *it) in bpf_iter_dmabuf_destroy()
H A Drqspinlock.c694 __bpf_kfunc int bpf_res_spin_lock(struct bpf_res_spin_lock *lock) in bpf_res_spin_lock()
710 __bpf_kfunc void bpf_res_spin_unlock(struct bpf_res_spin_lock *lock) in bpf_res_spin_unlock()
716 __bpf_kfunc int bpf_res_spin_lock_irqsave(struct bpf_res_spin_lock *lock, unsigned long *flags__irq… in bpf_res_spin_lock_irqsave()
735 __bpf_kfunc void bpf_res_spin_unlock_irqrestore(struct bpf_res_spin_lock *lock, unsigned long *flag… in bpf_res_spin_unlock_irqrestore()
H A Dtask_iter.c863 __bpf_kfunc int bpf_iter_task_vma_new(struct bpf_iter_task_vma *it, in bpf_iter_task_vma_new()
992 __bpf_kfunc struct vm_area_struct *bpf_iter_task_vma_next(struct bpf_iter_task_vma *it) in bpf_iter_task_vma_next()
1025 __bpf_kfunc void bpf_iter_task_vma_destroy(struct bpf_iter_task_vma *it) in bpf_iter_task_vma_destroy()
1051 __bpf_kfunc int bpf_iter_css_task_new(struct bpf_iter_css_task *it, in bpf_iter_css_task_new()
1076 __bpf_kfunc struct task_struct *bpf_iter_css_task_next(struct bpf_iter_css_task *it) in bpf_iter_css_task_next()
1085 __bpf_kfunc void bpf_iter_css_task_destroy(struct bpf_iter_css_task *it) in bpf_iter_css_task_destroy()
1120 __bpf_kfunc int bpf_iter_task_new(struct bpf_iter_task *it, in bpf_iter_task_new()
1152 __bpf_kfunc struct task_struct *bpf_iter_task_next(struct bpf_iter_task *it) in bpf_iter_task_next()
1181 __bpf_kfunc void bpf_iter_task_destroy(struct bpf_iter_task *it) in bpf_iter_task_destroy()
H A Dbpf_iter.c770 __bpf_kfunc int bpf_iter_num_new(struct bpf_iter_num *it, int start, int end) in bpf_iter_num_new()
801 __bpf_kfunc int *bpf_iter_num_next(struct bpf_iter_num* it) in bpf_iter_num_next()
819 __bpf_kfunc void bpf_iter_num_destroy(struct bpf_iter_num *it) in bpf_iter_num_destroy()
/linux/tools/testing/selftests/bpf/test_kmods/
H A Dbpf_testmod.c195 __bpf_kfunc void
201 __bpf_kfunc int bpf_iter_testmod_seq_new(struct bpf_iter_testmod_seq *it, s64 value, int cnt) in bpf_iter_testmod_seq_new()
213 __bpf_kfunc s64 *bpf_iter_testmod_seq_next(struct bpf_iter_testmod_seq* it) in bpf_iter_testmod_seq_next()
223 __bpf_kfunc s64 bpf_iter_testmod_seq_value(int val, struct bpf_iter_testmod_seq* it__iter) in bpf_iter_testmod_seq_value()
231 __bpf_kfunc void bpf_iter_testmod_seq_destroy(struct bpf_iter_testmod_seq *it) in bpf_iter_testmod_seq_destroy()
236 __bpf_kfunc void bpf_kfunc_common_test(void) in bpf_kfunc_common_test()
240 __bpf_kfunc u64 bpf_kfunc_arena_arg_test(u64 *val__arena) in bpf_kfunc_arena_arg_test()
249 __bpf_kfunc u64 bpf_kfunc_arena_cap_test(u64 *val__arena) in bpf_kfunc_arena_cap_test()
254 __bpf_kfunc u64 bpf_kfunc_arena_cap_nullable_test(u64 *val__arena__nullable) in bpf_kfunc_arena_cap_nullable_test()
259 __bpf_kfunc u64 bpf_kfunc_arena_args5_test(u64 *a__arena, u64 *b__arena, in bpf_kfunc_arena_args5_test()
[all …]
H A Dbpf_test_modorder_x.c9 __bpf_kfunc int bpf_test_modorder_retx(void) in bpf_test_modorder_retx()
H A Dbpf_test_modorder_y.c9 __bpf_kfunc int bpf_test_modorder_rety(void) in bpf_test_modorder_rety()
/linux/fs/
H A Dbpf_fs_kfuncs.c44 __bpf_kfunc struct file *bpf_get_task_exe_file(struct task_struct *task) in bpf_get_task_exe_file()
60 __bpf_kfunc void bpf_put_file(struct file *file) in bpf_put_file()
81 __bpf_kfunc int bpf_path_d_path(const struct path *path, char *buf, size_t buf__sz) in bpf_path_d_path()
129 __bpf_kfunc int bpf_get_dentry_xattr(struct dentry *dentry, const char *name__str, in bpf_get_dentry_xattr()
162 __bpf_kfunc int bpf_get_file_xattr(struct file *file, const char *name__str, in bpf_get_file_xattr()
288 __bpf_kfunc int bpf_set_dentry_xattr(struct dentry *dentry, const char *name__str, in bpf_set_dentry_xattr()
317 __bpf_kfunc int bpf_remove_dentry_xattr(struct dentry *dentry, const char *name__str) in bpf_remove_dentry_xattr()
344 __bpf_kfunc int bpf_cgroup_read_xattr(struct cgroup *cgroup, const char *name__str, in bpf_cgroup_read_xattr()
377 __bpf_kfunc int bpf_sock_read_xattr(struct socket *sock, const char *name__str, in bpf_sock_read_xattr()
412 __bpf_kfunc struct inode *bpf_real_data_inode(struct file *file) in bpf_real_data_inode()
/linux/net/core/
H A Dbpf_ksock.c68 __bpf_kfunc struct bpf_ksock *
161 __bpf_kfunc int bpf_ksock_connect(struct bpf_ksock *ks, in bpf_ksock_connect()
199 __bpf_kfunc struct bpf_ksock *bpf_ksock_acquire(struct bpf_ksock *ks) in bpf_ksock_acquire()
213 __bpf_kfunc void bpf_ksock_release(struct bpf_ksock *ks) in bpf_ksock_release()
221 __bpf_kfunc void bpf_ksock_release_dtor(void *ks) in bpf_ksock_release_dtor()
238 __bpf_kfunc int bpf_ksock_send(struct bpf_ksock *ks, const void *data, in bpf_ksock_send()
/linux/net/netfilter/
H A Dnf_conntrack_bpf.c324 __bpf_kfunc struct nf_conn___init *
352 __bpf_kfunc struct nf_conn *
380 __bpf_kfunc struct nf_conn___init *
409 __bpf_kfunc struct nf_conn *
429 __bpf_kfunc struct nf_conn *bpf_ct_insert_entry(struct nf_conn___init *nfct_i) in bpf_ct_insert_entry()
455 __bpf_kfunc void bpf_ct_release(struct nf_conn *nfct) in bpf_ct_release()
470 __bpf_kfunc void bpf_ct_set_timeout(struct nf_conn___init *nfct, u32 timeout) in bpf_ct_set_timeout()
485 __bpf_kfunc int bpf_ct_change_timeout(struct nf_conn *nfct, u32 timeout) in bpf_ct_change_timeout()
500 __bpf_kfunc int bpf_ct_set_status(const struct nf_conn___init *nfct, u32 status) in bpf_ct_set_status()
515 __bpf_kfunc int bpf_ct_change_status(struct nf_conn *nfct, u32 status) in bpf_ct_change_status()
/linux/kernel/sched/ext/
H A Didle.c1029 __bpf_kfunc s32 scx_bpf_cpu_node(s32 cpu, const struct bpf_prog_aux *aux) in scx_bpf_cpu_node()
1057 __bpf_kfunc s32 scx_bpf_select_cpu_dfl(struct task_struct *p, s32 prev_cpu, in scx_bpf_select_cpu_dfl()
1111 __bpf_kfunc s32
1131 __bpf_kfunc s32 scx_bpf_select_cpu_and(struct task_struct *p, s32 prev_cpu, u64 wake_flags, in scx_bpf_select_cpu_and()
1167 __bpf_kfunc const struct cpumask *
1193 __bpf_kfunc const struct cpumask *scx_bpf_get_idle_cpumask(const struct bpf_prog_aux *aux) in scx_bpf_get_idle_cpumask()
1225 __bpf_kfunc const struct cpumask *
1255 __bpf_kfunc const struct cpumask *scx_bpf_get_idle_smtmask(const struct bpf_prog_aux *aux) in scx_bpf_get_idle_smtmask()
1284 __bpf_kfunc void scx_bpf_put_idle_cpumask(const struct cpumask *idle_mask) in scx_bpf_put_idle_cpumask()
1305 __bpf_kfunc bool scx_bpf_test_and_clear_cpu_idle(s32 cpu, const struct bpf_prog_aux *aux) in scx_bpf_test_and_clear_cpu_idle()
[all …]
H A Dext.c8836 __bpf_kfunc bool scx_bpf_dsq_insert___v2(struct task_struct *p, u64 dsq_id, in scx_bpf_dsq_insert___v2()
8858 __bpf_kfunc void scx_bpf_dsq_insert(struct task_struct *p, u64 dsq_id, in scx_bpf_dsq_insert()
8915 __bpf_kfunc bool
8935 __bpf_kfunc void scx_bpf_dsq_insert_vtime(struct task_struct *p, u64 dsq_id, in scx_bpf_dsq_insert_vtime()
9089 __bpf_kfunc u32 scx_bpf_dispatch_nr_slots(const struct bpf_prog_aux *aux) in scx_bpf_dispatch_nr_slots()
9109 __bpf_kfunc void scx_bpf_dispatch_cancel(const struct bpf_prog_aux *aux) in scx_bpf_dispatch_cancel()
9153 __bpf_kfunc bool scx_bpf_dsq_move_to_local___v2(u64 dsq_id, u64 enq_flags, in scx_bpf_dsq_move_to_local___v2()
9196 __bpf_kfunc bool scx_bpf_dsq_move_to_local(u64 dsq_id, const struct bpf_prog_aux *aux) in scx_bpf_dsq_move_to_local()
9210 __bpf_kfunc void scx_bpf_dsq_move_set_slice(struct bpf_iter_scx_dsq *it__iter, in scx_bpf_dsq_move_set_slice()
9229 __bpf_kfunc void scx_bpf_dsq_move_set_vtime(struct bpf_iter_scx_dsq *it__iter, in scx_bpf_dsq_move_set_vtime()
[all …]
H A Dsub.c2225 __bpf_kfunc bool scx_bpf_sub_dispatch(u64 cgroup_id, const struct bpf_prog_aux *aux) in scx_bpf_sub_dispatch()
2311 __bpf_kfunc s32 scx_bpf_sub_grant(u64 cgroup_id, u64 caps, in scx_bpf_sub_grant()
2431 __bpf_kfunc void scx_bpf_sub_revoke(u64 cgroup_id, u64 caps, in scx_bpf_sub_revoke()
2525 __bpf_kfunc s32 scx_bpf_sub_caps(u64 cgroup_id, u64 caps, struct scx_cmask *out__arena, in scx_bpf_sub_caps()
2615 __bpf_kfunc s32 scx_bpf_sub_kill_bstr(u64 cgroup_id, char *fmt, in scx_bpf_sub_kill_bstr()
2652 __bpf_kfunc s32 scx_bpf_sub_grant(u64 cgroup_id, u64 caps, in scx_bpf_sub_grant()
2660 __bpf_kfunc void scx_bpf_sub_revoke(u64 cgroup_id, u64 caps, in scx_bpf_sub_revoke()
2666 __bpf_kfunc s32 scx_bpf_sub_caps(u64 cgroup_id, u64 caps, struct scx_cmask *out__arena, in scx_bpf_sub_caps()
2672 __bpf_kfunc s32 scx_bpf_sub_kill_bstr(u64 cgroup_id, char *fmt, in scx_bpf_sub_kill_bstr()
/linux/net/sched/
H A Dbpf_qdisc.c192 __bpf_kfunc u32 bpf_skb_get_hash(struct sk_buff *skb) in bpf_skb_get_hash()
200 __bpf_kfunc void bpf_kfree_skb(struct sk_buff *skb) in bpf_kfree_skb()
205 __bpf_kfunc void bpf_kfree_skb_dtor(void *skb)
215 __bpf_kfunc void bpf_qdisc_skb_drop(struct sk_buff *skb,
226 __bpf_kfunc void bpf_qdisc_watchdog_schedule(struct Qdisc *sch, u64 expire, u64 delta_ns)
234 __bpf_kfunc int bpf_qdisc_init_prologue(struct Qdisc *sch, in bpf_qdisc_init_prologue()
261 __bpf_kfunc void bpf_qdisc_reset_destroy_epilogue(struct Qdisc *sch)
272 __bpf_kfunc void bpf_qdisc_bstats_update(struct Qdisc *sch, const struct sk_buff *skb)
/linux/drivers/hid/bpf/
H A Dhid_bpf_dispatch.c296 __bpf_kfunc __u8 *
318 __bpf_kfunc struct hid_bpf_ctx *
345 __bpf_kfunc void
408 __bpf_kfunc int
470 __bpf_kfunc int
528 __bpf_kfunc int
553 __bpf_kfunc int
/linux/net/ipv4/
H A Dfou_bpf.c44 __bpf_kfunc int bpf_skb_set_fou_encap(struct __sk_buff *skb_ctx, in bpf_skb_set_fou_encap()
86 __bpf_kfunc int bpf_skb_get_fou_encap(struct __sk_buff *skb_ctx, in bpf_skb_get_fou_encap()
/linux/net/xfrm/
H A Dxfrm_interface_bpf.c40 __bpf_kfunc int bpf_skb_get_xfrm_info(struct __sk_buff *skb_ctx, struct bpf_xfrm_info *to) in bpf_skb_get_xfrm_info()
62 __bpf_kfunc int bpf_skb_set_xfrm_info(struct __sk_buff *skb_ctx, const struct bpf_xfrm_info *from) in bpf_skb_set_xfrm_info()
H A Dxfrm_state_bpf.c64 __bpf_kfunc struct xfrm_state *
113 __bpf_kfunc void bpf_xdp_xfrm_state_release(struct xfrm_state *x) in bpf_xdp_xfrm_state_release()
/linux/io_uring/
H A Dbpf-ops.c17 __bpf_kfunc int bpf_io_uring_submit_sqes(struct iou_ctx *loop_ctx, u32 nr) in bpf_io_uring_submit_sqes()
24 __bpf_kfunc
/linux/Documentation/bpf/
H A Dkfuncs.rst42 __bpf_kfunc struct task_struct *bpf_find_get_task_by_vpid(pid_t nr)
130 __bpf_kfunc void bpf_memzero(void *mem, int mem__sz)
150 __bpf_kfunc void *bpf_obj_new(u32 local_type_id__k, ...)
172 __bpf_kfunc int bpf_dynptr_from_skb(..., struct bpf_dynptr_kern *ptr__uninit)
189 __bpf_kfunc void bpf_task_release(struct task_struct *task__nullable)
203 __bpf_kfunc void *bpf_dynptr_slice(..., void *buffer__nullable,
217 __bpf_kfunc int bpf_list_add(..., struct bpf_list_node
234 __bpf_kfunc bpf_get_file_xattr(..., const char *name__str, ...)
264 __bpf_kfunc int bpf_wq_init(struct bpf_wq *wq, void *p__const_map,
276 __bpf_kfunc void *bpf_arena_alloc_pages(void *p__map, ...)
[all …]
/linux/net/bpf/
H A Dtest_run.c505 __bpf_kfunc int bpf_fentry_test1(int a) in bpf_fentry_test1()
551 __bpf_kfunc u32 bpf_fentry_test9(u32 *a) in bpf_fentry_test9()
582 __bpf_kfunc int bpf_modify_return_test(int a, int *b) in bpf_modify_return_test()
588 __bpf_kfunc int bpf_modify_return_test2(int a, int *b, short c, int d, in bpf_modify_return_test2()
595 __bpf_kfunc int bpf_modify_return_test_tp(int nonce) in bpf_modify_return_test_tp()
624 __bpf_kfunc void bpf_kfunc_call_test_release(struct prog_test_ref_kfunc *p) in bpf_kfunc_call_test_release()
629 __bpf_kfunc void bpf_kfunc_call_test_release_dtor(void *p) in bpf_kfunc_call_test_release_dtor()
635 __bpf_kfunc void bpf_kfunc_call_memb_release(struct prog_test_member *p) in bpf_kfunc_call_memb_release()
639 __bpf_kfunc void bpf_kfunc_call_memb_release_dtor(void *p) in bpf_kfunc_call_memb_release_dtor()
/linux/fs/verity/
H A Dmeasure.c121 __bpf_kfunc int bpf_get_fsverity_digest(struct file *file, const struct bpf_dynptr *digest_p) in bpf_get_fsverity_digest()

12