Home
last modified time | relevance | path

Searched refs:fdr (Results 1 – 23 of 23) sorted by relevance

/external/ltp/testcases/kernel/syscalls/ioctl/
Dioctl08.c36 static struct file_dedupe_range *fdr; variable
61 memset(fdr, 0, sizeof(struct file_dedupe_range) + in verify_ioctl()
64 fdr->src_length = tc->src_length; in verify_ioctl()
65 fdr->dest_count = 1; in verify_ioctl()
66 fdr->info[0].dest_fd = fd_dest; in verify_ioctl()
68 TEST(ioctl(fd_src, FIDEDUPERANGE, fdr)); in verify_ioctl()
77 if (fdr->info[0].bytes_deduped != tc->bytes_deduped) { in verify_ioctl()
80 fdr->info[0].bytes_deduped, tc->bytes_deduped, in verify_ioctl()
81 fdr->info[0].status); in verify_ioctl()
85 if (fdr->info[0].status != tc->status) { in verify_ioctl()
[all …]
/external/linux-kselftest/tools/testing/selftests/net/
Dtxring_overwrite.c77 int fdr; in setup_rx() local
79 fdr = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_IP)); in setup_rx()
80 if (fdr == -1) in setup_rx()
83 return fdr; in setup_rx()
140 static int read_verify_pkt(int fdr, char payload_char) in read_verify_pkt() argument
145 ret = read(fdr, buf, sizeof(buf)); in read_verify_pkt()
162 int fdr, fdt, ret = 0; in main() local
164 fdr = setup_rx(); in main()
170 ret |= read_verify_pkt(fdr, payload_patterns[0]); in main()
171 ret |= read_verify_pkt(fdr, payload_patterns[1]); in main()
[all …]
Dipv6_flowlabel.c187 int fdt, fdr; in main() local
195 fdr = socket(PF_INET6, SOCK_DGRAM, 0); in main()
196 if (fdr == -1) in main()
201 if (bind(fdr, (void *)&addr, sizeof(addr))) in main()
206 if (setsockopt(fdr, SOL_IPV6, IPV6_FLOWINFO, &one, sizeof(one))) in main()
212 do_recv(fdr, true, FLOWLABEL_WILDCARD); in main()
216 do_recv(fdr, false, 0); in main()
221 do_recv(fdr, true, cfg_label); in main()
223 if (close(fdr)) in main()
Dso_txtime.c93 static void do_recv_one(int fdr, struct timed_send *ts) in do_recv_one() argument
99 ret = recv(fdr, rbuf, sizeof(rbuf), 0); in do_recv_one()
118 static void do_recv_verify_empty(int fdr) in do_recv_verify_empty() argument
123 ret = recv(fdr, rbuf, sizeof(rbuf), 0); in do_recv_verify_empty()
183 int fdt, fdr, i; in do_test() local
190 fdr = setup_rx(addr, alen); in do_test()
197 do_recv_one(fdr, &cfg_out[i]); in do_test()
199 do_recv_verify_empty(fdr); in do_test()
201 if (close(fdr)) in do_test()
Dudpgso.c505 static void run_one(struct testcase *test, int fdt, int fdr, in run_one() argument
538 ret = recv_one(fdr, 0); in run_one()
545 ret = recv_one(fdr, 0); in run_one()
552 ret = recv_one(fdr, MSG_DONTWAIT); in run_one()
557 static void run_all(int fdt, int fdr, struct sockaddr *addr, socklen_t alen) in run_all() argument
567 run_one(test, fdt, fdr, addr, alen); in run_all()
574 int fdr, fdt, val; in run_test() local
576 fdr = socket(addr->sa_family, SOCK_DGRAM, 0); in run_test()
577 if (fdr == -1) in run_test()
580 if (bind(fdr, addr, alen)) in run_test()
[all …]
Dpsock_snd.c364 int fdr, fds, total_len; in run_test() local
366 fdr = setup_rx(); in run_test()
376 do_rx(fdr, cfg_payload_len, tbuf + total_len - cfg_payload_len); in run_test()
380 if (close(fdr)) in run_test()
/external/ltp/testcases/kernel/syscalls/fallocate/
Dfallocate02.c63 static int fdr; variable
73 {&fdr, FNAMER, DEFAULT_TEST_MODE, 0, 1, EBADF},
120 fdr = SAFE_OPEN(cleanup, FNAMER, O_RDONLY | O_CREAT, S_IRUSR); in setup()
160 if (fdr > 0) in cleanup()
161 SAFE_CLOSE(NULL, fdr); in cleanup()
/external/llvm-project/llvm/test/tools/llvm-xray/X86/
Dfdr-dump-arg1.txt1 ; RUN: llvm-xray fdr-dump -verify %S/Inputs/fdr-log-arg1.xray | FileCheck %s
Dfdr-dump-arg1-version-3.txt1 ; RUN: llvm-xray fdr-dump -verify %S/Inputs/fdr-log-arg1-version-3.xray \
Dconvert-fdr-arg1-to-yaml.txt1 ; RUN: llvm-xray convert %S/Inputs/fdr-log-arg1.xray -f=yaml -o - | FileCheck %s
Dconvert-fdr-log-arg1-version3-to-yaml.txt1 ; RUN: llvm-xray convert %S/Inputs/fdr-log-arg1-version-3.xray -f=yaml -o - | FileCheck %s
Dconvert-fdr-log-version3-to-yaml.txt1 ; RUN: llvm-xray convert %S/Inputs/fdr-log-version-3.xray -f=yaml -o - | FileCheck %s
Dconvert-fdr-to-yaml.txt1 ; RUN: llvm-xray convert %S/Inputs/fdr-log-version-1.xray -f=yaml -o - | FileCheck %s
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_flow_dissector.c514 int fdt = -1, fdr = -1, len, tx = 0, rx = 0; in do_main() local
517 fdr = setup_rx(); in do_main()
532 rx += do_rx(fdr); in do_main()
558 do_poll(fdr, POLLIN, tstop - tcur); in do_main()
559 rx += do_rx(fdr); in do_main()
565 if (fdr != -1 && close(fdr)) in do_main()
/external/llvm-project/llvm/tools/llvm-xray/
DCMakeLists.txt16 xray-fdr-dump.cpp
/external/llvm-project/llvm/utils/gn/secondary/llvm/tools/llvm-xray/
DBUILD.gn17 "xray-fdr-dump.cpp",
/external/llvm-project/compiler-rt/lib/xray/
DCMakeLists.txt210 add_compiler_rt_runtime(clang_rt.xray-fdr
283 add_compiler_rt_runtime(clang_rt.xray-fdr
Dxray_flags.inc40 "DEPRECATED: Use xray_mode=xray-fdr instead.")
/external/mesa3d/src/gallium/drivers/nouveau/codegen/
Dnv50_ir_from_tgsi.cpp135 fdr(dst) in DstRegister()
138 DstRegister(const struct tgsi_dst_register& dst) : reg(dst), fdr(NULL) { } in DstRegister()
146 return (dim && fdr) ? fdr->Dimension.Indirect : reg.Indirect; in isIndirect()
151 return (dim && fdr) ? fdr->Dimension.Dimension : reg.Index; in getIndex()
160 assert(fdr && isIndirect(dim)); in getIndirect()
162 return SrcRegister(fdr->DimIndirect); in getIndirect()
163 return SrcRegister(fdr->Indirect); in getIndirect()
168 assert(fdr); in asSrc()
169 return tgsi_full_src_register_from_dst(fdr); in asSrc()
175 return fdr->Indirect.ArrayID; in getArrayId()
[all …]
/external/python/cffi/testing/cffi1/
Dtest_verify1.py1592 fdr, fdw = os.pipe()
1605 result = os.read(fdr, 256)
1606 os.close(fdr)
1622 fdr, fdw = os.pipe()
1631 result = os.read(fdr, 256)
1632 os.close(fdr)
/external/python/cffi/testing/cffi0/
Dtest_verify.py1628 fdr, fdw = os.pipe()
1641 result = os.read(fdr, 256)
1642 os.close(fdr)
1658 fdr, fdw = os.pipe()
1667 result = os.read(fdr, 256)
1668 os.close(fdr)
/external/llvm-project/llvm/docs/
DXRay.rst232 on your application, you may set the ``xray_mode`` variable to ``xray-fdr`` in
236 ``__xray_log_init_mode("xray-fdr", <configuration string>)`` once it has been
/external/python/cffi/c/
Dtest_c.py2963 fdr, fdw = posix.pipe()
2964 fr1 = posix.fdopen(fdr, 'rb', 256)
2993 fdr, fdw = posix.pipe()
2994 fr1 = posix.fdopen(fdr, 'r')
3018 fdr, fdw = posix.pipe()
3030 data = posix.read(fdr, 256)
3032 posix.close(fdr)