Home
last modified time | relevance | path

Searched refs:bpf_task_from_pid (Results 1 – 13 of 13) sorted by relevance

/linux/tools/perf/util/bpf_skel/
H A Dlock_contention.bpf.c222 struct task_struct *bpf_task_from_pid(s32 pid) __ksym __weak; in get_current_cgroup_id()
626 if (!bpf_task_from_pid) in contention_begin()
629 task = bpf_task_from_pid(owner_pid); in contention_begin()
781 if (!bpf_task_from_pid) in contention_end()
784 task = bpf_task_from_pid(otdata->pid); in contention_end()
/linux/tools/testing/selftests/sched_ext/
H A Ddsp_local_on.bpf.c42 p = bpf_task_from_pid(pid); in BPF_STRUCT_OPS()
H A Dallowed_cpus.bpf.c159 p = bpf_task_from_pid(input->pid); in select_cpu_from_user()
/linux/tools/testing/selftests/bpf/progs/
H A Dverifier_kfunc_prog_types.c24 ref_1 = bpf_task_from_pid(current->pid); in task_kfunc_load_test()
H A Dtask_kfunc_common.h37 struct task_struct *bpf_task_from_pid(s32 pid) __ksym;
H A Dtask_kfunc_success.c287 acquired = bpf_task_from_pid(p->pid); in lookup_compare_pid()
322 acquired = bpf_task_from_pid(pid); in is_pid_lookup_valid()
H A Dtask_kfunc_failure.c282 acquired = bpf_task_from_pid(task->pid); in BPF_PROG()
/linux/tools/sched_ext/
H A Dscx_central.bpf.c145 p = bpf_task_from_pid(pid); in dispatch_to_cpu()
H A Dscx_pair.bpf.c520 p = bpf_task_from_pid(pid); in try_dispatch()
H A Dscx_qmap.bpf.c733 p = bpf_task_from_pid(2); in BPF_STRUCT_OPS()
/linux/Documentation/bpf/
H A Dkfuncs.rst757 :identifiers: bpf_task_from_pid
768 lookup = bpf_task_from_pid(task->pid);
774 /* bpf_task_from_pid() looks up the task via its
783 /* bpf_task_from_pid() returns an acquired reference,
/linux/tools/sched_ext/include/scx/
H A Dcommon.bpf.h412 struct task_struct *bpf_task_from_pid(s32 pid) __ksym;
/linux/kernel/bpf/
H A Dhelpers.c2989 __bpf_kfunc struct task_struct *bpf_task_from_pid(s32 pid) in bpf_task_from_pid() function
4852 BTF_ID_FLAGS(func, bpf_task_from_pid, KF_ACQUIRE | KF_RET_NULL)