Lines Matching refs:task
23 struct task_struct *bpf_task_acquire___one(struct task_struct *task) __ksym __weak;
39 static int test_acquire_release(struct task_struct *task) in test_acquire_release() argument
57 acquired = bpf_task_acquire(task); in test_acquire_release()
67 int BPF_PROG(test_task_kfunc_flavor_relo, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
73 acquired = bpf_task_acquire___one(task); in BPF_PROG()
79 acquired = bpf_task_acquire___two(task, &fake_ctx); in BPF_PROG()
97 int BPF_PROG(test_task_kfunc_flavor_relo_not_found, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
111 int BPF_PROG(test_task_acquire_release_argument, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
116 return test_acquire_release(task); in BPF_PROG()
120 int BPF_PROG(test_task_acquire_release_current, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
129 int BPF_PROG(test_task_acquire_leave_in_map, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
136 status = tasks_kfunc_map_insert(task); in BPF_PROG()
144 int BPF_PROG(test_task_xchg_release, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
154 status = tasks_kfunc_map_insert(task); in BPF_PROG()
160 v = tasks_kfunc_map_value_lookup(task); in BPF_PROG()
166 kptr = bpf_kptr_xchg(&v->task, NULL); in BPF_PROG()
179 kptr = bpf_kptr_xchg(&local->task, kptr); in BPF_PROG()
187 kptr = bpf_kptr_xchg(&local->task, NULL); in BPF_PROG()
204 acquired = bpf_kptr_xchg(&local->task, acquired); in BPF_PROG()
228 int BPF_PROG(test_task_map_acquire_release, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
237 status = tasks_kfunc_map_insert(task); in BPF_PROG()
243 v = tasks_kfunc_map_value_lookup(task); in BPF_PROG()
250 kptr = v->task; in BPF_PROG()
266 int BPF_PROG(test_task_current_acquire_release, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
299 int BPF_PROG(test_task_from_pid_arg, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
304 lookup_compare_pid(task); in BPF_PROG()
309 int BPF_PROG(test_task_from_pid_current, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
332 int BPF_PROG(test_task_from_pid_invalid, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
337 bpf_strncmp(task->comm, 12, "foo"); in BPF_PROG()
338 bpf_strncmp(task->comm, 16, "foo"); in BPF_PROG()
339 bpf_strncmp(&task->comm[8], 4, "foo"); in BPF_PROG()
355 int BPF_PROG(task_kfunc_acquire_trusted_walked, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
360 acquired = bpf_task_acquire(task->group_leader); in BPF_PROG()