Home
last modified time | relevance | path

Searched refs:bpf_task_acquire (Results 1 – 8 of 8) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtask_kfunc_failure.c42 acquired = bpf_task_acquire(v->task); in BPF_PROG()
58 acquired = bpf_task_acquire((struct task_struct *)&stack_task); in BPF_PROG()
74 acquired = bpf_task_acquire(task); in BPF_PROG()
94 acquired = bpf_task_acquire(task); in BPF_PROG()
109 acquired = bpf_task_acquire(NULL); in BPF_PROG()
123 acquired = bpf_task_acquire(task); in BPF_PROG()
157 acquired = bpf_task_acquire(task); in BPF_PROG()
214 acquired = bpf_task_acquire(task); in BPF_PROG()
257 acquired = bpf_task_acquire(task); in BPF_PROG()
H A Dtask_kfunc_success.c20 struct task_struct *bpf_task_acquire(struct task_struct *p) __ksym __weak;
42 if (!bpf_ksym_exists(bpf_task_acquire)) { in test_acquire_release()
56 acquired = bpf_task_acquire(task); in test_acquire_release()
202 kptr = bpf_task_acquire(kptr); in BPF_PROG()
222 acquired = bpf_task_acquire(current); in BPF_PROG()
308 acquired = bpf_task_acquire(task->group_leader); in BPF_PROG()
H A Dtest_ksyms_weak.c23 struct task_struct *bpf_task_acquire(struct task_struct *p) __ksym __weak;
56 if (!bpf_ksym_exists(bpf_task_acquire)) in pass_handler()
58 bpf_task_acquire(0); in pass_handler()
H A Dtest_task_under_cgroup.c13 struct task_struct *bpf_task_acquire(struct task_struct *p) __ksym;
29 acquired = bpf_task_acquire(task); in BPF_PROG()
H A Dtask_kfunc_common.h23 struct task_struct *bpf_task_acquire(struct task_struct *p) __ksym;
63 acquired = bpf_task_acquire(p); in tasks_kfunc_map_insert()
H A Drcu_read_lock.c26 struct task_struct *bpf_task_acquire(struct task_struct *p) __ksym;
162 gparent = bpf_task_acquire(gparent); in task_acquire()
/openbmc/linux/Documentation/bpf/
H A Dkfuncs.rst494 :identifiers: bpf_task_acquire bpf_task_release
511 acquired = bpf_task_acquire(task);
563 it can acquire a reference on with bpf_task_acquire().
608 These kfuncs are used in exactly the same manner as bpf_task_acquire() and
/openbmc/linux/kernel/bpf/
H A Dhelpers.c2123 __bpf_kfunc struct task_struct *bpf_task_acquire(struct task_struct *p) in bpf_task_acquire() function
2235 p = bpf_task_acquire(p); in bpf_task_from_pid()
2469 BTF_ID_FLAGS(func, bpf_task_acquire, KF_ACQUIRE | KF_RCU | KF_RET_NULL)