Home
last modified time | relevance | path

Searched refs:task_fd (Results 1 – 4 of 4) sorted by relevance

/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
A Dtest_bprm_opts.c18 int task_fd, ret = 0; in update_storage() local
20 task_fd = sys_pidfd_open(getpid(), 0); in update_storage()
21 if (task_fd < 0) in update_storage()
24 ret = bpf_map_update_elem(map_fd, &task_fd, &secureexec, BPF_NOEXIST); in update_storage()
28 close(task_fd); in update_storage()
A Dtest_local_storage.c101 int err, serv_sk = -1, task_fd = -1, rm_fd = -1; in test_test_local_storage() local
114 task_fd = sys_pidfd_open(getpid(), 0); in test_test_local_storage()
115 if (CHECK(task_fd < 0, "pidfd_open", in test_test_local_storage()
116 "failed to get pidfd err:%d, errno:%d", task_fd, errno)) in test_test_local_storage()
120 task_fd)) in test_test_local_storage()
182 close(task_fd); in test_test_local_storage()
A Dtask_local_storage.c82 int err, map_fd, prog_fd, task_fd; in test_recursion() local
88 task_fd = sys_pidfd_open(getpid(), 0); in test_recursion()
89 if (!ASSERT_NEQ(task_fd, -1, "sys_pidfd_open")) in test_recursion()
110 err = bpf_map_lookup_elem(map_fd, &task_fd, &value); in test_recursion()
116 err = bpf_map_lookup_elem(map_fd, &task_fd, &value); in test_recursion()
139 close(task_fd); in test_recursion()
/linux-6.3-rc2/tools/perf/util/
A Dbpf_lock_contention.c185 int task_fd = bpf_map__fd(skel->maps.task_data); in lock_contention_get_name() local
193 if (!bpf_map_lookup_elem(task_fd, &pid, &task) && in lock_contention_get_name()

Completed in 7 milliseconds