Searched refs:task_fd (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | test_bprm_opts.c | 18 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 D | test_local_storage.c | 94 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()
|
H A D | task_local_storage.c | 82 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()
|
/openbmc/linux/tools/perf/util/ |
H A D | bpf_lock_contention.c | 187 int task_fd = bpf_map__fd(skel->maps.task_data); in lock_contention_get_name() local 195 if (!bpf_map_lookup_elem(task_fd, &pid, &task) && in lock_contention_get_name()
|