| /tools/testing/selftests/net/ |
| A D | proc_net_pktgen.c | 155 len = write(self->ctrl_fd, wrong_ctrl_cmd, i); in TEST_F() 164 len = write(self->ctrl_fd, ctrl_cmd_stop, sizeof(ctrl_cmd_stop)); in TEST_F() 170 len = write(self->ctrl_fd, ctrl_cmd_start, sizeof(ctrl_cmd_start)); in TEST_F() 187 len = write(self->thr_fd, wrong_thr_cmd, i); in TEST_F() 197 len = write(self->thr_fd, legacy_thr_cmd, i); in TEST_F() 213 len = write(self->dev_fd, wrong_dev_cmd, i); in TEST_F() 503 len = write(self->dev_fd, dev_cmd_dst_0, sizeof(dev_cmd_dst_0)); in TEST_F() 587 len = write(self->dev_fd, dev_cmd_spi_0, sizeof(dev_cmd_spi_0)); in TEST_F() 665 len = write(self->dev_fd, dev_cmd_tos_0, sizeof(dev_cmd_tos_0)); in TEST_F() 668 len = write(self->dev_fd, dev_cmd_tos_1, sizeof(dev_cmd_tos_1)); in TEST_F() [all …]
|
| /tools/testing/selftests/kvm/x86/ |
| A D | hyperv_features.c | 27 bool write; member 49 if (msr->write) in guest_msr() 67 if (msr->write) in guest_msr() 169 msr->write = false; in guest_test_msrs_access() 174 msr->write = false; in guest_test_msrs_access() 184 msr->write = true; in guest_test_msrs_access() 213 msr->write = true; in guest_test_msrs_access() 232 msr->write = true; in guest_test_msrs_access() 251 msr->write = true; in guest_test_msrs_access() 269 msr->write = true; in guest_test_msrs_access() [all …]
|
| /tools/testing/selftests/bpf/ |
| A D | generate_udp_fragments.py | 33 f.write("// SPDX-License-Identifier: GPL-2.0\n") 35 f.write("\n") 36 f.write("#ifndef _IP_CHECK_DEFRAG_FRAGS_H\n") 37 f.write("#define _IP_CHECK_DEFRAG_FRAGS_H\n") 38 f.write("\n") 39 f.write("#include <stdint.h>\n") 40 f.write("\n") 52 f.write(f"\t{chunk},\n") 53 f.write(f"}};\n") 57 f.write("\n") [all …]
|
| /tools/perf/pmu-events/ |
| A D | jevents.py | 534 _args.output_file.write( 544 _args.output_file.write(f""" 590 _args.output_file.write( 599 _args.output_file.write(f""" 695 _args.output_file.write(""" 792 _args.output_file.write("""{ 804 _args.output_file.write(""" 1297 _args.output_file.write(""" 1302 _args.output_file.write( 1305 _args.output_file.write(""" [all …]
|
| /tools/testing/selftests/net/packetdrill/ |
| A D | tcp_blocking_blocking-write.pkt | 2 // Test for blocking write. 24 // A write of 60000 does not block. 25 +0...0.300 write(4, ..., 61000) = 61000 // this write() blocks 31 // This ACK should wakeup the write(). An ACK of 35001 does not.
|
| A D | tcp_nagle_sockopt_cork_nodelay.pkt | 17 +0 write(4, ..., 40) = 40 18 +.05 write(4, ..., 40) = 40 28 +0 write(4, ..., 40) = 40 29 +.05 write(4, ..., 40) = 40
|
| A D | tcp_user_timeout_user-timeout-probe.pkt | 18 +0 write(4, ..., 24) = 24 26 +0 write(4, ..., 24) = 24 31 +3.250 write(4, ..., 24) = 24 33 +.100 write(4, ..., 24) = -1 ETIMEDOUT (Connection timed out)
|
| A D | tcp_sack_sack-route-refresh-ip-tos.pkt | 3 // cause problems matching SACKs with packets in the write queue. 17 +.01 write(3, ..., 5840) = 5840 21 +.01 write(3, ..., 5840) = 5840 25 +.01 write(3, ..., 14600) = 14600
|
| A D | tcp_nagle_https_client.pkt | 20 +0 write(4, ..., 517) = 517 29 +0 write(4, ..., 51) = 51 31 +.03 write(4, ..., 2002) = 2002
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | ctx_rewrite.c | 50 char *write; member 80 .write = "r11 = *(u8 *)($ctx + sk_buff::__mono_tc_offset);" 91 .write = "*(u32 *)($ctx + sk_buff::priority) = $src;", 96 .write = "*(u32 *)($ctx + sk_buff::mark) = $src;", 111 .write = "*(u16 *)($ctx + sk_buff::tc_index) = $src;", 134 .write = "*(u32 *)($ctx + sock::sk_mark) = $src;", 139 .write = "*(u32 *)($ctx + sock::sk_priority) = $src;", 151 .write = "*(u64 *)($ctx + bpf_sysctl_kern::tmp_reg) = r9;" 752 if (test->write || test->write_st || test->write_stx) { in run_one_testcase() 776 if (test->write || test->write_stx) { in run_one_testcase() [all …]
|
| /tools/perf/scripts/python/ |
| A D | compaction-times.py | 206 sys.stdout.write("total: %s\n" % chead.str()) 249 sys.stdout.write(usage) 250 sys.stdout.write("\n") 251 sys.stdout.write("-h display this help\n") 252 sys.stdout.write("-p display by process\n") 253 sys.stdout.write("-pv display by process (verbose)\n") 254 sys.stdout.write("-t display stall times only\n") 255 sys.stdout.write("-m display stats for migration\n") 256 sys.stdout.write("-fs display stats for free scanner\n") 257 sys.stdout.write("-ms display stats for migration scanner\n") [all …]
|
| A D | export-to-postgresql.py | 741 file.write(file_header) 745 file.write(file_trailer) 758 file.write(file_trailer) 981 evsel_file.write(value) 999 comm_file.write(value) 1015 dso_file.write(value) 1046 call_file.write(value) 1062 cbr_file.write(value) 1070 mwait_file.write(value) 1079 pwre_file.write(value) [all …]
|
| /tools/testing/selftests/core/ |
| A D | unshare_test.c | 48 write(fd, buf2, n2); in TEST() 55 write(fd, buf, n); in TEST() 62 write(fd, buf, n); in TEST() 70 write(fd, buf, n); in TEST() 79 write(fd, buf, n); in TEST()
|
| /tools/perf/util/ |
| A D | trace-event-info.c | 59 if (write(output_fd, &size, hdr_sz) != hdr_sz) in record_file() 67 if (write(output_fd, buf, r) != r) in record_file() 192 if (write(output_fd, &count, 4) != 4) { in copy_event_system() 285 if (write(output_fd, &count, 4) != 4) { in record_event_files() 352 if (write(output_fd, &size, 4) != 4) in record_ftrace_printk() 380 if (write(output_fd, &size, 8) != 8) in record_saved_cmdline() 564 if (write(output_fd, buf, 10) != 10) in tracing_data_header() 568 if (write(output_fd, VERSION, size) != size) in tracing_data_header() 577 if (write(output_fd, buf, 1) != 1) in tracing_data_header() 582 if (write(output_fd, buf, 1) != 1) in tracing_data_header() [all …]
|
| /tools/memory-model/litmus-tests/ |
| A D | Z6.0+pooncerelease+poacquirerelease+fencembonceonce.litmus | 9 * P0's write, which means that there are two non-rf links: P1() to P2() 10 * is a write-to-write link (AKA a "coherence" or just "co" link) and P2() 11 * to P0() is a read-to-write link (AKA a "from-reads" or just "fr" link).
|
| A D | CoWW+poonceonce.litmus | 6 * Test of write-write coherence, that is, whether or not two successive
|
| A D | CoRW+poonceonce+Once.litmus | 6 * Test of read-write coherence, that is, whether or not a read from 7 * a given variable and a later write to that same variable are ordered.
|
| A D | CoWR+poonceonce+Once.litmus | 6 * Test of write-read coherence, that is, whether or not a write to a
|
| /tools/testing/selftests/mm/ |
| A D | write_hugetlb_memory.sh | 8 write=$3 22 ./write_to_hugetlbfs -p "$path" -s "$size" "$write" "$populate" -m "$method" \
|
| A D | write_to_hugetlbfs.c | 76 int write = 0; in main() local 106 write = 1; in main() 146 if (!write) in main() 225 if (write) { in main()
|
| /tools/testing/selftests/powerpc/mm/ |
| A D | large_vm_fork_separation.c | 55 FAIL_IF(write(c2p[1], &c, 1) != 1); in test() 61 FAIL_IF(write(p2c[1], &c, 1) != 1); in test() 74 FAIL_IF(write(p2c[1], &c, 1) != 1); in test()
|
| /tools/testing/selftests/wireguard/qemu/ |
| A D | init.c | 116 if (write(fd, "9\n", 2) != 2) in enable_logging() 122 if (write(fd, "1\n", 2) != 2) in enable_logging() 198 if (write(fd, "success\n", 8) != 8) in launch_tests() 228 if (write(1, "\0\0\0\0\n", 5) == 5) in ensure_console() 242 write(fd, "clear\n", 5); in clear_leaks() 255 write(fd, "scan\n", 5); in check_leaks()
|
| /tools/virtio/virtio-trace/ |
| A D | README | 8 - write trace data to stdout by using -o option 13 2) Create a read/write thread per CPU. Each thread is bound to a CPU. 14 The read/write threads hold it. 17 the controller wake read/write threads. 18 5) The read/write threads start to read trace data from ring-buffers and 19 write the data to virtio-serial. 20 6) If the controller receives a stop order from a host, the read/write threads 31 trace-agent-ctl.c: includes controller function for read/write threads 32 trace-agent-rw.c: includes read/write threads function 103 read/write threads in the agent wait for start order from host. If you add -o
|
| /tools/testing/selftests/landlock/ |
| A D | scoped_signal_test.c | 141 ASSERT_EQ(1, write(pipe_parent[1], ".", 1)); in TEST_F() 202 ASSERT_EQ(1, write(pipe_child[1], ".", 1)); in TEST_F() 243 ASSERT_EQ(1, write(pipe_parent[1], ".", 1)); in TEST_F() 286 EXPECT_EQ(1, write(thread_pipe[1], ".", 1)); in TEST() 311 EXPECT_EQ(1, write(thread_pipe[1], ".", 1)); in TEST() 368 EXPECT_EQ(1, write(pipe_parent[1], ".", 1)); in TEST() 500 ASSERT_EQ(1, write(pipe_child[1], ".", 1)); in TEST_F() 528 ASSERT_EQ(1, write(pipe_parent[1], ".", 1)); in TEST_F() 545 ASSERT_EQ(1, write(pipe_parent[1], ".", 1)); in TEST_F() 553 ASSERT_EQ(1, write(pipe_parent[1], ".", 1)); in TEST_F()
|
| /tools/testing/selftests/net/mptcp/ |
| A D | mptcp_inq.c | 267 ret = write(unixfd, &len, sizeof(len)); in connect_one_server() 270 ret = write(fd, buf, len); in connect_one_server() 284 ret = write(unixfd, &total, sizeof(total)); in connect_one_server() 295 ret = write(fd, buf, len); in connect_one_server() 311 ret = write(fd, buf, 1); in connect_one_server() 314 ret = write(unixfd, "closed", 6); in connect_one_server() 353 ret = write(unixfd, "xmit", 4); in process_one_client() 405 ret = write(unixfd, "huge", 4); in process_one_client() 433 ret = write(unixfd, "shut", 4); in process_one_client() 493 r = write(unixfd, "conn", 4); in server()
|