Home
last modified time | relevance | path

Searched refs:write (Results 1 – 25 of 366) sorted by relevance

12345678910>>...15

/tools/testing/selftests/kvm/x86_64/
Dhyperv_features.c27 bool write; member
49 if (msr->write) in guest_msr()
52 if (!vector && (!msr->write || !is_write_only_msr(msr->idx))) in guest_msr()
58 msr->write ? "WR" : "RD", msr->idx, vector); in guest_msr()
62 msr->write ? "WR" : "RD", msr->idx, vector); 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()
190 msr->write = false; in guest_test_msrs_access()
[all …]
/tools/testing/selftests/bpf/
Dgenerate_udp_fragments.py33 f.write("// SPDX-License-Identifier: GPL-2.0\n")
34 f.write("/* DO NOT EDIT -- this file is generated */\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")
50 f.write(f"static uint8_t frag{suffix}_{idx}[] = {{\n")
52 f.write(f"\t{chunk},\n")
[all …]
/tools/perf/pmu-events/
Djevents.py513 _args.output_file.write('};\n')
515 _args.output_file.write(
521 _args.output_file.write(event.to_c_string(metric=False))
525 _args.output_file.write(f"""
532 _args.output_file.write(f"""{{
538 _args.output_file.write('};\n\n')
569 _args.output_file.write('};\n')
571 _args.output_file.write(
577 _args.output_file.write(metric.to_c_string(metric=True))
580 _args.output_file.write(f"""
[all …]
/tools/testing/selftests/bpf/prog_tests/
Dctx_rewrite.c50 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;",
101 .write = "*(u32 *)($ctx + $(sk_buff::cb + qdisc_skb_cb::data)) = $src;",
106 .write = "*(u16 *)($ctx + $(sk_buff::cb + qdisc_skb_cb::tc_classid)) = $src;",
111 .write = "*(u16 *)($ctx + sk_buff::tc_index) = $src;",
129 .write = "*(u32 *)($ctx + sock_common::skc_bound_dev_if) = $src;",
134 .write = "*(u32 *)($ctx + sock::sk_mark) = $src;",
139 .write = "*(u32 *)($ctx + sock::sk_priority) = $src;",
[all …]
Dsend_signal.c61 ASSERT_EQ(write(pipe_c2p[1], buf, 1), 1, "pipe_write"); in test_send_signal_common()
76 ASSERT_EQ(write(pipe_c2p[1], buf, 1), 1, "pipe_write"); in test_send_signal_common()
125 ASSERT_EQ(write(pipe_p2c[1], buf, 1), 1, "pipe_write"); in test_send_signal_common()
139 ASSERT_EQ(write(pipe_p2c[1], buf, 1), 1, "pipe_write"); in test_send_signal_common()
/tools/perf/scripts/python/
Dcompaction-times.py138 sys.stderr.write("missing start compaction event for pid %d\n" % pid)
147 sys.stderr.write("missing start compaction event for pid %d\n" % pid)
192 sys.stdout.write("%d[%s].%d: %s\n" % (self.pid, self.comm, i+1, pelem))
202 sys.stdout.write("%d[%s]: %s\n" % (self.pid, self.comm, self.val))
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")
[all …]
Dexport-to-postgresql.py741 file.write(file_header)
745 file.write(file_trailer)
758 file.write(file_trailer)
981 evsel_file.write(value)
988 machine_file.write(value)
992 thread_file.write(value)
999 comm_file.write(value)
1004 comm_thread_file.write(value)
1015 dso_file.write(value)
1022 symbol_file.write(value)
[all …]
/tools/testing/selftests/core/
Dunshare_test.c48 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/
Dtrace-event-info.c59 if (write(output_fd, &size, hdr_sz) != hdr_sz) in record_file()
67 if (write(output_fd, buf, r) != r) in record_file()
104 if (write(output_fd, "header_page", 12) != 12) { in record_header_files()
128 if (write(output_fd, "header_event", 13) != 13) { in record_header_files()
192 if (write(output_fd, &count, 4) != 4) { in copy_event_system()
285 if (write(output_fd, &count, 4) != 4) { in record_event_files()
305 if (write(output_fd, dent->d_name, size) != size || in record_event_files()
332 return write(output_fd, &size, 4) != 4 ? -EIO : 0; in record_proc_kallsyms()
352 if (write(output_fd, &size, 4) != 4) in record_ftrace_printk()
380 if (write(output_fd, &size, 8) != 8) in record_saved_cmdline()
[all …]
/tools/memory-model/litmus-tests/
DZ6.0+pooncerelease+poacquirerelease+fencembonceonce.litmus9 * 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).
DCoWW+poonceonce.litmus6 * Test of write-write coherence, that is, whether or not two successive
DCoRW+poonceonce+Once.litmus6 * 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.
DCoWR+poonceonce+Once.litmus6 * Test of write-read coherence, that is, whether or not a write to a
DISA2+pooncelock+pooncelock+pombonce.litmus6 * This test shows that write-write ordering provided by locks
/tools/testing/selftests/mm/
Dwrite_hugetlb_memory.sh8 write=$3
22 ./write_to_hugetlbfs -p "$path" -s "$size" "$write" "$populate" -m "$method" \
Dwrite_to_hugetlbfs.c76 int write = 0; in main() local
106 write = 1; in main()
146 if (!write) in main()
225 if (write) { in main()
Dgup_test.c95 int filed, i, opt, nr_pages = 1, thp = -1, write = 1, nthreads = 1, ret; in main() local
156 write = 1; in main()
159 write = 0; in main()
212 if (write) in main()
/tools/testing/selftests/powerpc/mm/
Dlarge_vm_fork_separation.c55 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/
Dinit.c116 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/
DREADME8 - 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/
Dscoped_signal_test.c141 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/
Dmptcp_inq.c259 ret = write(unixfd, &len, sizeof(len)); in connect_one_server()
262 ret = write(fd, buf, len); in connect_one_server()
276 ret = write(unixfd, &total, sizeof(total)); in connect_one_server()
287 ret = write(fd, buf, len); in connect_one_server()
303 ret = write(fd, buf, 1); in connect_one_server()
306 ret = write(unixfd, "closed", 6); in connect_one_server()
345 ret = write(unixfd, "xmit", 4); in process_one_client()
397 ret = write(unixfd, "huge", 4); in process_one_client()
425 ret = write(unixfd, "shut", 4); in process_one_client()
485 r = write(unixfd, "conn", 4); in server()
/tools/testing/selftests/thermal/intel/workload_hint/
Dworkload_hint_test.c39 if (write(fd, "0\n", 2) < 0) { in workload_hint_exit()
79 if (write(fd, delay_str, strlen(delay_str)) < 0) { in main()
101 if (write(fd, "1\n", 2) < 0) { in main()
/tools/testing/selftests/drivers/net/hw/
Dpp_alloc_fail.py17 fp.write(str(value) + "\n")
26 fp.write("page_pool_alloc_pages\n")
42 fp.write("\n")
/tools/testing/selftests/nci/
Dnci_dev.c336 write(dev_fd, nci_reset_rsp, sizeof(nci_reset_rsp)); in virtual_dev_open()
345 write(dev_fd, nci_init_rsp, sizeof(nci_init_rsp)); in virtual_dev_open()
354 write(dev_fd, nci_rf_disc_map_rsp, sizeof(nci_rf_disc_map_rsp)); in virtual_dev_open()
376 write(dev_fd, nci_reset_rsp_v2, sizeof(nci_reset_rsp_v2)); in virtual_dev_open_v2()
377 write(dev_fd, nci_reset_ntf, sizeof(nci_reset_ntf)); in virtual_dev_open_v2()
386 write(dev_fd, nci_init_rsp_v2, sizeof(nci_init_rsp_v2)); in virtual_dev_open_v2()
395 write(dev_fd, nci_rf_disc_map_rsp, sizeof(nci_rf_disc_map_rsp)); in virtual_dev_open_v2()
467 write(dev_fd, nci_reset_rsp, sizeof(nci_reset_rsp)); in virtual_deinit()
489 write(dev_fd, nci_reset_rsp_v2, sizeof(nci_reset_rsp_v2)); in virtual_deinit_v2()
490 write(dev_fd, nci_reset_ntf, sizeof(nci_reset_ntf)); in virtual_deinit_v2()
[all …]

12345678910>>...15