Home
last modified time | relevance | path

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

12345678910>>...16

/tools/testing/selftests/net/packetdrill/
Dtcp_inq_server.pkt24 // We read 2K and we should have 8K ready to read.
31 // We read 8K and we should have no further data ready to read.
42 // We read 10K and we should have one "fake" byte because the connection is
51 +0 read(3, ..., 2000) = -1 ENOTCONN (Transport endpoint is not connected)
Dtcp_inq_client.pkt23 // We read 1K and we should have 9K ready to read.
30 // We read 9K and we should have no further data ready to read.
42 // We read 10K and we should have one "fake" byte because the connection is
51 +0 read(3, ..., 2000) = 0
/tools/testing/selftests/bpf/prog_tests/
Dctx_rewrite.c46 char *read; member
72 .read = "r11 = *(u8 *)($ctx + sk_buff::__mono_tc_offset);"
90 .read = "$dst = *(u32 *)($ctx + sk_buff::priority);",
95 .read = "$dst = *(u32 *)($ctx + sk_buff::mark);",
100 .read = "$dst = *(u32 *)($ctx + $(sk_buff::cb + qdisc_skb_cb::data));",
105 .read = "$dst = *(u16 *)($ctx + $(sk_buff::cb + qdisc_skb_cb::tc_classid));",
110 .read = "$dst = *(u16 *)($ctx + sk_buff::tc_index);",
115 .read = "$dst = *(u16 *)($ctx + sk_buff::queue_mapping);",
128 .read = "$dst = *(u32 *)($ctx + sock_common::skc_bound_dev_if);",
133 .read = "$dst = *(u32 *)($ctx + sock::sk_mark);",
[all …]
Duser_ringbuf.c38 int read; in write_samples() local
50 read = snprintf(entry->comm, sizeof(entry->comm), "%u", i); in write_samples()
51 if (read <= 0) { in write_samples()
55 ASSERT_GT(read, 0, "snprintf_comm"); in write_samples()
56 err = read; in write_samples()
174 ASSERT_EQ(skel->bss->read, 0, "no_reads_after_load"); in load_skel_create_ringbufs()
210 ASSERT_EQ(skel->bss->read, 0, "num_samples_before_bad_sample"); in manually_write_test_invalid_sample()
228 ASSERT_EQ(skel->bss->read, 0, "num_samples_after_bad_sample"); in manually_write_test_invalid_sample()
293 ASSERT_EQ(skel->bss->read, 0, "num_samples_read_before"); in test_user_ringbuf_basic()
299 ASSERT_EQ(skel->bss->read, 2, "num_samples_read_after"); in test_user_ringbuf_basic()
[all …]
Dsend_signal.c64 ASSERT_EQ(read(pipe_p2c[0], buf, 1), 1, "pipe_read"); in test_send_signal_common()
79 ASSERT_EQ(read(pipe_p2c[0], buf, 1), 1, "pipe_read"); in test_send_signal_common()
117 ASSERT_EQ(read(pipe_c2p[0], buf, 1), 1, "pipe_read"); in test_send_signal_common()
128 err = read(pipe_c2p[0], buf, 1); in test_send_signal_common()
/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.c80 COMP(read.group.nr); in samples_same()
82 COMP(read.one.value); in samples_same()
84 COMP(read.time_enabled); in samples_same()
86 COMP(read.time_running); in samples_same()
89 for (i = 0; i < s1->read.group.nr; i++) { in samples_same()
92 MCOMP(read.group.values[i]); in samples_same()
95 COMP(read.one.id); in samples_same()
97 COMP(read.one.lost); in samples_same()
253 .read = { in do_test()
289 sample.read.group.nr = 4; 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/testing/selftests/hid/
Dhid_bpf.c202 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F()
218 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F()
246 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F()
259 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F()
310 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F()
340 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F()
359 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F()
389 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F()
424 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F()
435 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F()
[all …]
/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/tracing/rtla/sample/
Dtimerlat_load.py66 timerlat_fd.read(1)
67 data_fd.read(20*1024*1024)
/tools/testing/selftests/mm/
Dhugepage-vmemmap.c46 read(fd, &pagemap, sizeof(pagemap)); in virt_to_pfn()
63 read(fd, &pageflags, sizeof(pageflags)); in check_page_flags()
76 read(fd, &pageflags, sizeof(pageflags)); in check_page_flags()
/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()
/tools/leds/
Dled_hw_brightness_mon.c53 read(fd, buf, sizeof(buf)); in main()
69 ret = read(fd, buf, sizeof(buf)); in main()
/tools/testing/selftests/powerpc/ptrace/
Dperf-hwbreak.c114 res = read(fd[i], &c, sizeof(c)); in read_fds()
271 res = read(break_fd, &breaks, sizeof(unsigned long long)); in runtestsingle()
322 res = read(break_fd, &breaks, sizeof(unsigned long long)); in runtest_dar_outside()
337 res = read(break_fd, &breaks, sizeof(unsigned long long)); in runtest_dar_outside()
352 res = read(break_fd, &breaks, sizeof(unsigned long long)); in runtest_dar_outside()
367 res = read(break_fd, &breaks, sizeof(unsigned long long)); in runtest_dar_outside()
382 res = read(break_fd, &breaks, sizeof(unsigned long long)); in runtest_dar_outside()
431 res = read(fd1, &breaks1, sizeof(breaks1)); in test_process_multi_diff_addr()
433 res = read(fd2, &breaks2, sizeof(breaks2)); in test_process_multi_diff_addr()
476 res = read(fd1, &breaks1, sizeof(breaks1)); in test_process_multi_same_addr()
[all …]
/tools/testing/selftests/filesystems/eventfd/
Deventfd_test.c230 size = read(fd, &value, sizeof(int)); in TEST()
234 size = read(fd, &value, sizeof(value)); in TEST()
265 size = read(fd, &value, sizeof(value)); in TEST()
269 size = read(fd, &value, sizeof(value)); in TEST()
300 size = read(fd, &value, sizeof(value)); in TEST()
305 size = read(fd, &value, sizeof(value)); in TEST()
/tools/testing/selftests/landlock/
Dscoped_signal_test.c111 ASSERT_EQ(1, read(pipe_parent[0], &buf_child, 1)); in TEST_F()
206 ASSERT_EQ(1, read(pipe_parent[0], &buf_child, 1)); in TEST_F()
231 ASSERT_EQ(1, read(pipe_child[0], &buf_parent, 1)); in TEST_F()
264 if (read(pipe_read, &buf, 1) != 1) in thread_sync()
329 if (read(arg->pipe_read, &buf, 1) != 1) in thread_setuid()
488 ASSERT_EQ(1, read(pipe_parent[0], &buffer_child, 1)); in TEST_F()
496 ASSERT_EQ(1, read(pipe_parent[0], &buffer_child, 1)); in TEST_F()
504 ASSERT_EQ(1, read(pipe_parent[0], &buffer_child, 1)); in TEST_F()
548 ASSERT_EQ(1, read(pipe_child[0], &buffer_parent, 1)); in TEST_F()
Dscoped_abstract_unix_test.c113 ASSERT_EQ(1, read(pipe_parent[0], &buf_child, 1)); in TEST_F()
205 ASSERT_EQ(1, read(pipe_parent[0], &buf, 1)); in TEST_F()
222 ASSERT_EQ(1, read(pipe_parent[0], &buf, 1)); in TEST_F()
244 ASSERT_EQ(1, read(pipe_child[0], &buf, 1)); in TEST_F()
361 ASSERT_EQ(1, read(pipe_child[0], &buf, 1)); in TEST_F()
387 ASSERT_EQ(1, read(pipe_parent[0], &buf, 1)); in TEST_F()
574 ASSERT_EQ(1, read(pipe_parent[0], &buf_child, 1)); in TEST_F()
594 ASSERT_EQ(1, read(pipe_child[0], &buf_parent, 1)); in TEST_F()
723 ASSERT_EQ(1, read(pipe_parent[0], &buf_child, 1)); in TEST_F()
827 ASSERT_EQ(1, read(unnamed_sockets[1], &buf_parent, sizeof(buf_parent))); in TEST_F()
[all …]
/tools/testing/selftests/devices/probe/
Dtest_discoverable_devices.py65 dt_mmio = re_dt_mmio.search(f.read()).group(1)
81 of_fullname = re_of_fullname.search(f.read()).group(1)
90 return f.read()
96 return int(re_usb_version.search(f.read()).group(1))
102 return int(re_busnum.search(f.read()).group(1))
308 vendor = f.read().replace("\n", "")
310 product = f.read().replace("\n", "")
/tools/testing/selftests/x86/
Dsrso.c62 read(rrets_fd, &count_rets, sizeof(long long)); in main()
63 read(mrrets_fd, &count_rets_mispred, sizeof(long long)); in main()

12345678910>>...16