Home
last modified time | relevance | path

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

/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dtask_local_storage.c90 int err, map_fd, prog_fd, task_fd; in test_recursion() local
96 task_fd = sys_pidfd_open(getpid(), 0); in test_recursion()
141 close(task_fd); in test_recursion()
380 int err, task_fd, map_fd; in test_uptr_across_pages() local
383 task_fd = sys_pidfd_open(getpid(), 0); in test_uptr_across_pages()
384 if (!ASSERT_OK_FD(task_fd, "task_fd")) in test_uptr_across_pages()
390 close(task_fd); in test_uptr_across_pages()
411 close(task_fd); in test_uptr_across_pages()
419 int err, task_fd, map_fd; in test_uptr_update_failure() local
421 task_fd = sys_pidfd_open(getpid(), 0); in test_uptr_update_failure()
[all …]
H 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()
H A Dtest_local_storage.c94 int err, serv_sk = -1, task_fd = -1, rm_fd = -1; in test_test_local_storage() local
107 task_fd = sys_pidfd_open(getpid(), 0); in test_test_local_storage()
108 if (!ASSERT_GE(task_fd, 0, "pidfd_open")) in test_test_local_storage()
112 task_fd)) in test_test_local_storage()
170 close(task_fd); in test_test_local_storage()
/linux-6.15/tools/perf/util/
H A Dbpf_lock_contention.c471 int task_fd = bpf_map__fd(skel->maps.task_data); in lock_contention_get_name() local
478 !bpf_map_lookup_elem(task_fd, &pid, &task) && in lock_contention_get_name()