Home
last modified time | relevance | path

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

/linux-6.15/tools/testing/selftests/bpf/progs/
H A Dtest_send_signal_kern.c7 struct task_struct *bpf_task_from_pid(int pid) __ksym;
24 target_task = bpf_task_from_pid(target_pid); in bpf_send_signal_test()
H A Dtask_ls_uptr.c8 struct task_struct *bpf_task_from_pid(s32 pid) __ksym;
34 data_task = bpf_task_from_pid(parent_pid); in on_enter()
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_common.h25 struct task_struct *bpf_task_from_pid(s32 pid) __ksym;
H A Dverifier_kfunc_prog_types.c24 ref_1 = bpf_task_from_pid(current->pid); in task_kfunc_load_test()
H A Dtask_kfunc_failure.c242 acquired = bpf_task_from_pid(task->pid); in BPF_PROG()
/linux-6.15/tools/perf/util/bpf_skel/
H A Dlock_contention.bpf.c200 struct task_struct *bpf_task_from_pid(s32 pid) __ksym __weak;
520 if (!bpf_task_from_pid) in contention_begin()
523 task = bpf_task_from_pid(owner_pid); in contention_begin()
675 if (!bpf_task_from_pid) in contention_end()
678 task = bpf_task_from_pid(otdata->pid); in contention_end()
/linux-6.15/tools/testing/selftests/sched_ext/
H A Ddsp_local_on.bpf.c42 p = bpf_task_from_pid(pid); in BPF_STRUCT_OPS()
/linux-6.15/tools/sched_ext/
H A Dscx_central.bpf.c144 p = bpf_task_from_pid(pid); in dispatch_to_cpu()
H A Dscx_qmap.bpf.c386 p = bpf_task_from_pid(2); in BPF_STRUCT_OPS()
419 p = bpf_task_from_pid(pid); in BPF_STRUCT_OPS()
/linux-6.15/Documentation/bpf/
H A Dkfuncs.rst588 :identifiers: bpf_task_from_pid
599 lookup = bpf_task_from_pid(task->pid);
605 /* bpf_task_from_pid() looks up the task via its
614 /* bpf_task_from_pid() returns an acquired reference,
/linux-6.15/tools/sched_ext/include/scx/
H A Dcommon.bpf.h316 struct task_struct *bpf_task_from_pid(s32 pid) __ksym;
/linux-6.15/kernel/bpf/
H A Dhelpers.c2534 __bpf_kfunc struct task_struct *bpf_task_from_pid(s32 pid) in bpf_task_from_pid() function
3226 BTF_ID_FLAGS(func, bpf_task_from_pid, KF_ACQUIRE | KF_RET_NULL)