Lines Matching refs:pid
146 __u32 pid = bpf_get_current_pid_tgid(); in can_record() local
148 ok = bpf_map_lookup_elem(&task_filter, &pid); in can_record()
177 int pid, err; in update_task_data() local
179 err = bpf_core_read(&pid, sizeof(pid), &task->pid); in update_task_data()
183 p = bpf_map_lookup_elem(&task_data, &pid); in update_task_data()
188 if (bpf_map_update_elem(&task_data, &pid, &data, BPF_NOEXIST) == -E2BIG) in update_task_data()
277 __u32 pid; in contention_begin() local
283 pid = bpf_get_current_pid_tgid(); in contention_begin()
284 pelem = bpf_map_lookup_elem(&tstamp, &pid); in contention_begin()
291 bpf_map_update_elem(&tstamp, &pid, &zero, BPF_ANY); in contention_begin()
292 pelem = bpf_map_lookup_elem(&tstamp, &pid); in contention_begin()
316 pelem->flags = BPF_CORE_READ(task, pid); in contention_begin()
336 __u32 pid; in contention_end() local
345 pid = bpf_get_current_pid_tgid(); in contention_end()
346 pelem = bpf_map_lookup_elem(&tstamp, &pid); in contention_end()
352 bpf_map_delete_elem(&tstamp, &pid); in contention_end()
363 key.pid = pelem->flags; in contention_end()
365 key.pid = pid; in contention_end()
382 bpf_map_delete_elem(&tstamp, &pid); in contention_end()
405 bpf_map_delete_elem(&tstamp, &pid); in contention_end()
418 bpf_map_delete_elem(&tstamp, &pid); in contention_end()