Home
last modified time | relevance | path

Searched refs:read (Results 1 – 25 of 284) sorted by relevance

12345678910>>...12

/tools/testing/selftests/fpu/
Dtest_fpu.c29 if (read(fd, dummy, 1) < 0) { in main()
35 if (read(fd, dummy, 1) < 0) { in main()
50 if (read(fd, dummy, 1) < 0) { in main()
/tools/perf/tests/
Dsample-parsing.c70 COMP(read.group.nr); in samples_same()
72 COMP(read.one.value); in samples_same()
74 COMP(read.time_enabled); in samples_same()
76 COMP(read.time_running); in samples_same()
79 for (i = 0; i < s1->read.group.nr; i++) in samples_same()
80 MCOMP(read.group.values[i]); in samples_same()
82 COMP(read.one.id); in samples_same()
232 .read = { in do_test()
268 sample.read.group.nr = 4; in do_test()
269 sample.read.group.values = values; in do_test()
[all …]
/tools/virtio/virtio-trace/
DREADME13 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
20 6) If the controller receives a stop order from a host, the read/write threads
21 stop to read trace data.
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
112 4) Start to read trace data by ordering from a host
[all …]
/tools/testing/selftests/powerpc/mm/
Dlarge_vm_fork_separation.c49 FAIL_IF(read(p2c[0], &c, 1) != 1); in test()
56 FAIL_IF(read(p2c[0], &c, 1) != 1); in test()
62 FAIL_IF(read(c2p[0], &c, 1) != 1); in test()
/tools/memory-model/litmus-tests/
DCoRR+poonceonce+Once.litmus6 * Test of read-read 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
DCoWR+poonceonce+Once.litmus6 * Test of write-read coherence, that is, whether or not a write to a
7 * given variable and a later read from that same variable are ordered.
/tools/testing/selftests/powerpc/ptrace/
Dperf-hwbreak.c110 res = read(fd[i], &c, sizeof(c)); in read_fds()
225 res = read(break_fd, &breaks, sizeof(unsigned long long)); in runtestsingle()
276 res = read(break_fd, &breaks, sizeof(unsigned long long)); in runtest_dar_outside()
291 res = read(break_fd, &breaks, sizeof(unsigned long long)); in runtest_dar_outside()
306 res = read(break_fd, &breaks, sizeof(unsigned long long)); in runtest_dar_outside()
321 res = read(break_fd, &breaks, sizeof(unsigned long long)); in runtest_dar_outside()
336 res = read(break_fd, &breaks, sizeof(unsigned long long)); in runtest_dar_outside()
385 res = read(fd1, &breaks1, sizeof(breaks1)); in test_process_multi_diff_addr()
387 res = read(fd2, &breaks2, sizeof(breaks2)); in test_process_multi_diff_addr()
430 res = read(fd1, &breaks1, sizeof(breaks1)); in test_process_multi_same_addr()
[all …]
/tools/testing/selftests/bpf/prog_tests/
Dsend_signal.c63 ASSERT_EQ(read(pipe_p2c[0], buf, 1), 1, "pipe_read"); in test_send_signal_common()
72 ASSERT_EQ(read(pipe_p2c[0], buf, 1), 1, "pipe_read"); in test_send_signal_common()
110 ASSERT_EQ(read(pipe_c2p[0], buf, 1), 1, "pipe_read"); in test_send_signal_common()
121 err = read(pipe_c2p[0], buf, 1); in test_send_signal_common()
/tools/testing/selftests/proc/
Dproc-loadavg-001.c47 rv = read(fd, buf, sizeof(buf)); in main()
65 rv = read(fd, buf, sizeof(buf)); in main()
Dsetns-dcache.c88 if (read(fd[0], &_, 1) != 1) { in main()
122 rv = read(fd, buf, sizeof(buf)); in main()
Dsetns-sysvipc.c87 if (read(fd[0], &_, 1) != 1) { in main()
122 rv = read(fd, buf, sizeof(buf)); in main()
Dproc-self-wchan.c35 if (read(fd, buf, sizeof(buf)) != 1) in main()
/tools/leds/
Dled_hw_brightness_mon.c53 read(fd, buf, sizeof(buf)); in main()
69 ret = read(fd, buf, sizeof(buf)); in main()
/tools/io_uring/
Dio_uring-cp.c28 int read; member
76 if (data->read) in queue_prepped()
99 data->read = 1; in queue_read()
113 data->read = 0; in queue_write()
215 if (data->read) { in copy_file()
/tools/perf/
D.gitignore8 perf-read-vdso32
9 perf-read-vdsox32
/tools/testing/selftests/ftrace/test.d/
Dfunctions20 while read line; do
26 while read line; do
42 while read line; do
52 grep -v '^#' set_ftrace_filter | while read t; do
81 while read line; do
98 while read line; do
/tools/memory-model/Documentation/
Dcheatsheet.txt27 R: Read, for example, READ_ONCE(), or read portion of RMW
31 DR: Dependent read (address dependency)
33 RMW: Atomic read-modify-write operation
/tools/testing/selftests/vm/
Dcompaction_test.c70 if (read(fd, &allowed, sizeof(char)) != sizeof(char)) { in prereq()
101 if (read(fd, initial_nr_hugepages, sizeof(initial_nr_hugepages)) <= 0) { in check_compaction()
123 if (read(fd, nr_hugepages, sizeof(nr_hugepages)) <= 0) { in check_compaction()
/tools/perf/arch/s390/util/
Dheader.c35 int read; in get_cpuid() local
60 while ((read = getline(&line, &line_sz, sysinfo)) != -1) { in get_cpuid()
103 while ((read = getline(&line, &line_sz, sysinfo)) != -1) { in get_cpuid()
/tools/testing/selftests/landlock/
Dptrace_test.c78 if (read(fd, buf, 1) < 0) { in get_yama_ptrace_scope()
333 ASSERT_EQ(1, read(pipe_parent[0], &buf_child, 1)); in TEST_F()
377 ASSERT_EQ(1, read(pipe_parent[0], &buf_child, 1)); in TEST_F()
394 ASSERT_EQ(1, read(pipe_child[0], &buf_parent, 1)); in TEST_F()
/tools/testing/selftests/efivarfs/
D.gitignore2 create-read
/tools/testing/selftests/filesystems/fuse/
Dtest_fuse.h82 ssize_t res = read(fuse_dev, &bytes_in, \
93 ssize_t res = read(fuse_dev, &bytes_in, \
104 ssize_t res = read(fuse_dev, &bytes_in, \
119 ssize_t res = read(fuse_dev, &bytes_in, \
131 ssize_t res = read(fuse_dev, &bytes_in, \
146 TEST(res = read(fuse_dev, &bytes_in, sizeof(bytes_in)), \
/tools/testing/selftests/rtc/
Drtctest.c66 rc = read(self->fd, &data, sizeof(data));
101 rc = read(self->fd, &data, sizeof(unsigned long)); in TEST_F()
154 rc = read(self->fd, &data, sizeof(unsigned long)); in TEST_F()
204 rc = read(self->fd, &data, sizeof(unsigned long)); in TEST_F()
256 rc = read(self->fd, &data, sizeof(unsigned long));
306 rc = read(self->fd, &data, sizeof(unsigned long));
/tools/testing/selftests/nci/
Dnci_dev.c329 len = read(dev_fd, buf, 258); in virtual_dev_open()
338 len = read(dev_fd, buf, 258); in virtual_dev_open()
347 len = read(dev_fd, buf, 258); in virtual_dev_open()
369 len = read(dev_fd, buf, 258); in virtual_dev_open_v2()
379 len = read(dev_fd, buf, 258); in virtual_dev_open_v2()
388 len = read(dev_fd, buf, 258); in virtual_dev_open_v2()
460 len = read(dev_fd, buf, 258); in virtual_deinit()
482 len = read(dev_fd, buf, 258); in virtual_deinit_v2()
545 len = read(dev_fd, buf, 258); in virtual_poll_start()
567 len = read(dev_fd, buf, 258); in virtual_poll_stop()
[all …]

12345678910>>...12