Home
last modified time | relevance | path

Searched refs:target_fd (Results 1 – 22 of 22) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/proc/
Dfd-001-lookup.c102 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/
Dns_guard.cc33 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()
Dlibbpf.c883 int self_fd = -1, target_fd = -1; in enter_mount_ns() local
898 target_fd = open(buf, O_RDONLY | O_CLOEXEC); in enter_mount_ns()
899 if (target_fd < 0) { in enter_mount_ns()
909 if (fstat(target_fd, &target_stat)) { in enter_mount_ns()
918 if (setns(target_fd, CLONE_NEWNS)) { in enter_mount_ns()
923 close(target_fd); in enter_mount_ns()
929 if (target_fd >= 0) in enter_mount_ns()
930 close(target_fd); in enter_mount_ns()
/external/libchrome/mojo/public/cpp/platform/
Dplatform_channel.cc106 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-mx32/
Dbpf.c713 .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/
Dbpf.c713 .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/
Dbpf.c713 .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/
Dbpf_attr_check.c284 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…
Dbpf_attr.h147 uint32_t target_fd; member
158 uint32_t target_fd; member
226 uint32_t target_fd; member
Dbpf.c353 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()
Dconfig.h.in1567 /* Define to 1 if `query.target_fd' is a member of `union bpf_attr'. */
1579 /* Define to 1 if `target_fd' is a member of `union bpf_attr'. */
Dconfigure11375 ac_fn_c_check_member "$LINENO" "union bpf_attr" "query.target_fd" "ac_cv_member_union_bpf_attr_quer…
11415 ac_fn_c_check_member "$LINENO" "union bpf_attr" "target_fd" "ac_cv_member_union_bpf_attr_target_fd"…
/external/tensorflow/tensorflow/core/platform/posix/
Dposix_file_system.cc330 int target_fd = open(translated_target.c_str(), O_WRONLY | O_CREAT, in CopyFile() local
332 if (target_fd < 0) { in CopyFile()
346 rc = sendfile(target_fd, src_fd, &offset, static_cast<size_t>(chunk)); in CopyFile()
355 rc = write(target_fd, buffer.get(), static_cast<size_t>(chunk)); in CopyFile()
369 rc = close(target_fd); in CopyFile()
/external/strace/m4/
Dbpf_attr.m468 union bpf_attr.query.target_fd,
72 union bpf_attr.target_fd,
/external/iproute2/include/
Dbpf_util.h261 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/kernel-headers/original/uapi/linux/
Dbpf.h379 __u32 target_fd; /* container object to attach to */ member
417 __u32 target_fd; /* container object to query */ member
/external/syzkaller/sys/linux/
Dbpf.txt272 target_fd fd_cgroup
335 target_fd fd_cgroup
/external/bcc/src/cc/compat/linux/
Dbpf.h347 __u32 target_fd; /* container object to attach to */ member
382 __u32 target_fd; /* container object to query */ member
/external/bcc/src/cc/includes/compat/linux/
Dbpf.h347 __u32 target_fd; /* container object to attach to */ member
382 __u32 target_fd; /* container object to query */ member
/external/iproute2/lib/
Dbpf.c1029 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/
Dbpf.h222 __u32 target_fd; /* container object to attach to */ member
/external/googletest/googletest/src/
Dgtest-death-test.cc1019 add_stderr_action->fd.target_fd = STDERR_FILENO; in AssumeRole()