Searched refs:task_fd (Results 1 – 2 of 2) sorted by relevance
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | test_bprm_opts.c | 26 int task_fd, ret = 0; in update_storage() local 28 task_fd = sys_pidfd_open(getpid(), 0); in update_storage() 29 if (task_fd < 0) in update_storage() 32 ret = bpf_map_update_elem(map_fd, &task_fd, &secureexec, BPF_NOEXIST); in update_storage() 36 close(task_fd); in update_storage()
|
A D | test_local_storage.c | 117 int err, serv_sk = -1, task_fd = -1, rm_fd = -1; in test_test_local_storage() local 130 task_fd = sys_pidfd_open(getpid(), 0); in test_test_local_storage() 131 if (CHECK(task_fd < 0, "pidfd_open", in test_test_local_storage() 132 "failed to get pidfd err:%d, errno:%d", task_fd, errno)) in test_test_local_storage() 136 task_fd)) in test_test_local_storage() 198 close(task_fd); in test_test_local_storage()
|
Completed in 3 milliseconds