Lines Matching refs:task
22 struct task_struct *bpf_task_acquire___one(struct task_struct *task) __ksym __weak;
38 static int test_acquire_release(struct task_struct *task) in test_acquire_release() argument
56 acquired = bpf_task_acquire(task); in test_acquire_release()
66 int BPF_PROG(test_task_kfunc_flavor_relo, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
72 acquired = bpf_task_acquire___one(task); in BPF_PROG()
78 acquired = bpf_task_acquire___two(task, &fake_ctx); in BPF_PROG()
96 int BPF_PROG(test_task_kfunc_flavor_relo_not_found, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
110 int BPF_PROG(test_task_acquire_release_argument, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
115 return test_acquire_release(task); in BPF_PROG()
119 int BPF_PROG(test_task_acquire_release_current, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
128 int BPF_PROG(test_task_acquire_leave_in_map, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
135 status = tasks_kfunc_map_insert(task); in BPF_PROG()
143 int BPF_PROG(test_task_xchg_release, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
152 status = tasks_kfunc_map_insert(task); in BPF_PROG()
158 v = tasks_kfunc_map_value_lookup(task); in BPF_PROG()
164 kptr = bpf_kptr_xchg(&v->task, NULL); in BPF_PROG()
176 int BPF_PROG(test_task_map_acquire_release, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
185 status = tasks_kfunc_map_insert(task); in BPF_PROG()
191 v = tasks_kfunc_map_value_lookup(task); in BPF_PROG()
198 kptr = v->task; in BPF_PROG()
214 int BPF_PROG(test_task_current_acquire_release, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
247 int BPF_PROG(test_task_from_pid_arg, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
252 lookup_compare_pid(task); in BPF_PROG()
257 int BPF_PROG(test_task_from_pid_current, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
280 int BPF_PROG(test_task_from_pid_invalid, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
285 bpf_strncmp(task->comm, 12, "foo"); in BPF_PROG()
286 bpf_strncmp(task->comm, 16, "foo"); in BPF_PROG()
287 bpf_strncmp(&task->comm[8], 4, "foo"); in BPF_PROG()
303 int BPF_PROG(task_kfunc_acquire_trusted_walked, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
308 acquired = bpf_task_acquire(task->group_leader); in BPF_PROG()