/external/linux-kselftest/tools/testing/selftests/proc/ |
D | fd-001-lookup.c | 102 unsigned int fd, target_fd; in main() local 156 target_fd = 1023; in main() 157 while (target_fd > 0) { in main() 158 if (dup2(fd, target_fd) == target_fd) in main() 160 target_fd /= 2; in main() 162 assert(target_fd > 0); in main() 164 test_lookup(target_fd); in main() 165 close(target_fd); in main()
|
/external/bcc/src/cc/ |
D | ns_guard.cc | 33 ebpf::FileDesc target_fd(open(target_path.c_str(), O_RDONLY)); in ProcMountNS() local 36 if (self_fd < 0 || target_fd < 0) in ProcMountNS() 42 if (fstat(target_fd, &target_stat) != 0) in ProcMountNS() 51 target_fd_ = std::move(target_fd); in ProcMountNS()
|
D | libbpf.c | 908 int self_fd = -1, target_fd = -1; in enter_mount_ns() local 923 target_fd = open(buf, O_RDONLY | O_CLOEXEC); in enter_mount_ns() 924 if (target_fd < 0) { in enter_mount_ns() 934 if (fstat(target_fd, &target_stat)) { in enter_mount_ns() 943 if (setns(target_fd, CLONE_NEWNS)) { in enter_mount_ns() 948 close(target_fd); in enter_mount_ns() 954 if (target_fd >= 0) in enter_mount_ns() 955 close(target_fd); in enter_mount_ns()
|
/external/llvm-project/lldb/source/Host/posix/ |
D | ProcessLauncherPosixFork.cpp | 75 int target_fd = llvm::sys::RetryAfterSignal(-1, ::open, in DupDescriptor() local 78 if (target_fd == -1) in DupDescriptor() 81 if (target_fd == fd) in DupDescriptor() 84 if (::dup2(target_fd, fd) == -1) in DupDescriptor() 87 ::close(target_fd); in DupDescriptor()
|
/external/libchrome/mojo/public/cpp/platform/ |
D | platform_channel.cc | 106 int target_fd) { 108 if (mapping[i].second == target_fd) 193 int target_fd = base::GlobalDescriptors::kBaseDescriptor; in PrepareToPassRemoteEndpoint() local 194 while (IsTargetDescriptorUsed(*info, target_fd)) in PrepareToPassRemoteEndpoint() 195 ++target_fd; in PrepareToPassRemoteEndpoint() 197 target_fd); in PrepareToPassRemoteEndpoint() 198 *value = base::NumberToString(target_fd); in PrepareToPassRemoteEndpoint()
|
/external/strace/tests/ |
D | bpf.c | 713 .data = { .BPF_PROG_ATTACH_data = { .target_fd = -1 } }, 714 .size = offsetofend(struct BPF_PROG_ATTACH_struct, target_fd), 720 .target_fd = -1, 735 .data = { .BPF_PROG_DETACH_data = { .target_fd = -1 } }, 736 .size = offsetofend(struct BPF_PROG_DETACH_struct, target_fd), 741 .target_fd = -1, 958 .data = { .BPF_PROG_QUERY_data = { .target_fd = -1 } }, 959 .size = offsetofend(struct BPF_PROG_QUERY_struct, target_fd), 966 .target_fd = 3141592653U, 980 .target_fd = 3141592653U, [all …]
|
/external/strace/tests-m32/ |
D | bpf.c | 713 .data = { .BPF_PROG_ATTACH_data = { .target_fd = -1 } }, 714 .size = offsetofend(struct BPF_PROG_ATTACH_struct, target_fd), 720 .target_fd = -1, 735 .data = { .BPF_PROG_DETACH_data = { .target_fd = -1 } }, 736 .size = offsetofend(struct BPF_PROG_DETACH_struct, target_fd), 741 .target_fd = -1, 958 .data = { .BPF_PROG_QUERY_data = { .target_fd = -1 } }, 959 .size = offsetofend(struct BPF_PROG_QUERY_struct, target_fd), 966 .target_fd = 3141592653U, 980 .target_fd = 3141592653U, [all …]
|
/external/strace/tests-mx32/ |
D | bpf.c | 713 .data = { .BPF_PROG_ATTACH_data = { .target_fd = -1 } }, 714 .size = offsetofend(struct BPF_PROG_ATTACH_struct, target_fd), 720 .target_fd = -1, 735 .data = { .BPF_PROG_DETACH_data = { .target_fd = -1 } }, 736 .size = offsetofend(struct BPF_PROG_DETACH_struct, target_fd), 741 .target_fd = -1, 958 .data = { .BPF_PROG_QUERY_data = { .target_fd = -1 } }, 959 .size = offsetofend(struct BPF_PROG_QUERY_struct, target_fd), 966 .target_fd = 3141592653U, 980 .target_fd = 3141592653U, [all …]
|
/external/strace/ |
D | bpf_attr_check.c | 284 static_assert(SoM(struct BPF_PROG_ATTACH_struct, target_fd) == SoM(union bpf_attr, target_fd), 286 …atic_assert(offsetof(struct BPF_PROG_ATTACH_struct, target_fd) == offsetof(union bpf_attr, target_… 315 static_assert(SoM(struct BPF_PROG_DETACH_struct, target_fd) == SoM(union bpf_attr, target_fd), 317 …atic_assert(offsetof(struct BPF_PROG_DETACH_struct, target_fd) == offsetof(union bpf_attr, target_… 494 static_assert(SoM(struct BPF_PROG_QUERY_struct, target_fd) == SoM(union bpf_attr, query.target_fd), 496 …ic_assert(offsetof(struct BPF_PROG_QUERY_struct, target_fd) == offsetof(union bpf_attr, query.targ…
|
D | bpf_attr.h | 147 uint32_t target_fd; member 158 uint32_t target_fd; member 226 uint32_t target_fd; member
|
D | bpf.c | 353 PRINT_FIELD_FD("{", attr, target_fd, tcp); in BEGIN_BPF_CMD_DECODER() 364 PRINT_FIELD_FD("{", attr, target_fd, tcp); in BEGIN_BPF_CMD_DECODER() 667 PRINT_FIELD_FD("{query={", attr, target_fd, tcp); in BEGIN_BPF_CMD_DECODER()
|
/external/tensorflow/tensorflow/core/platform/default/ |
D | posix_file_system.cc | 406 int target_fd = in CopyFile() local 408 if (target_fd < 0) { in CopyFile() 422 rc = sendfile(target_fd, src_fd, &offset, static_cast<size_t>(chunk)); in CopyFile() 431 rc = write(target_fd, buffer.get(), static_cast<size_t>(chunk)); in CopyFile() 445 rc = close(target_fd); in CopyFile()
|
/external/strace/m4/ |
D | bpf_attr.m4 | 68 union bpf_attr.query.target_fd, 72 union bpf_attr.target_fd,
|
/external/iproute2/include/ |
D | bpf_util.h | 261 int bpf_prog_attach_fd(int prog_fd, int target_fd, enum bpf_attach_type type); 262 int bpf_prog_detach_fd(int target_fd, enum bpf_attach_type type);
|
/external/ltp/include/lapi/ |
D | bpf.h | 235 uint32_t target_fd; /* container object to attach to */ member 280 uint32_t target_fd; /* container object to query */ member
|
/external/llvm-project/lldb/source/Plugins/Process/FreeBSD/ |
D | ProcessMonitor.cpp | 1368 int target_fd = llvm::sys::RetryAfterSignal(-1, open, in DupDescriptor() local 1371 if (target_fd == -1) in DupDescriptor() 1374 if (dup2(target_fd, fd) == -1) in DupDescriptor() 1377 return (close(target_fd) == -1) ? false : true; in DupDescriptor()
|
/external/bcc/src/cc/compat/linux/ |
D | bpf.h | 379 __u32 target_fd; /* container object to attach to */ member 417 __u32 target_fd; /* container object to query */ member
|
/external/bcc/src/cc/includes/compat/linux/ |
D | bpf.h | 379 __u32 target_fd; /* container object to attach to */ member 417 __u32 target_fd; /* container object to query */ member
|
/external/kernel-headers/original/uapi/linux/ |
D | bpf.h | 581 __u32 target_fd; /* container object to attach to */ member 633 __u32 target_fd; /* container object to query */ member 673 __u32 target_fd; /* object to attach to */ member
|
/external/iproute2/lib/ |
D | bpf.c | 1029 int bpf_prog_attach_fd(int prog_fd, int target_fd, enum bpf_attach_type type) in bpf_prog_attach_fd() argument 1033 attr.target_fd = target_fd; in bpf_prog_attach_fd() 1040 int bpf_prog_detach_fd(int target_fd, enum bpf_attach_type type) in bpf_prog_detach_fd() argument 1044 attr.target_fd = target_fd; in bpf_prog_detach_fd()
|
/external/iproute2/include/uapi/linux/ |
D | bpf.h | 222 __u32 target_fd; /* container object to attach to */ member
|
/external/llvm-project/compiler-rt/lib/fuzzer/ |
D | FuzzerUtilFuchsia.cpp | 420 .target_fd = targetFd, in clone_fd_action()
|
/external/rust/crates/libfuzzer-sys/libfuzzer/ |
D | FuzzerUtilFuchsia.cpp | 420 .target_fd = targetFd, in clone_fd_action()
|
/external/rust/crates/quiche/deps/boringssl/src/third_party/googletest/src/ |
D | gtest-death-test.cc | 1019 add_stderr_action->fd.target_fd = STDERR_FILENO; in AssumeRole()
|
/external/mesa3d/src/gtest/src/ |
D | gtest-death-test.cc | 1034 add_stderr_action->fd.target_fd = STDERR_FILENO; in AssumeRole()
|