Home
last modified time | relevance | path

Searched refs:bytes_read (Results 1 – 11 of 11) sorted by relevance

/tools/power/acpi/tools/ec/
Dec_access.c129 int byte_off, bytes_read; in dump_ec() local
131 bytes_read = read(fd, buf, EC_SPACE_SIZE); in dump_ec()
133 if (bytes_read == -1) in dump_ec()
136 if (bytes_read != EC_SPACE_SIZE) in dump_ec()
137 fprintf(stderr, "Could only read %d bytes\n", bytes_read); in dump_ec()
140 for (byte_off = 0; byte_off < bytes_read; byte_off++) { in dump_ec()
154 bytes_read = read(fd, buf2, EC_SPACE_SIZE); in dump_ec()
156 if (bytes_read == -1) in dump_ec()
159 if (bytes_read != EC_SPACE_SIZE) in dump_ec()
160 fprintf(stderr, "Could only read %d bytes\n", bytes_read); in dump_ec()
[all …]
/tools/perf/scripts/perl/
Drwtop.pl44 $reads{$common_pid}{bytes_read} += $ret;
46 if (!defined ($reads{$common_pid}{bytes_read})) {
47 $reads{$common_pid}{bytes_read} = 0;
136 foreach my $pid (sort { ($reads{$b}{bytes_read} || 0) <=>
137 ($reads{$a}{bytes_read} || 0) } keys %reads) {
141 my $bytes_read = $reads{$pid}{bytes_read} || 0;
144 $total_reads, $bytes_requested, $bytes_read);
Drw-by-pid.pl31 $reads{$common_pid}{bytes_read} += $ret;
33 if (!defined ($reads{$common_pid}{bytes_read})) {
34 $reads{$common_pid}{bytes_read} = 0;
82 foreach my $pid (sort { ($reads{$b}{bytes_read} || 0) <=>
83 ($reads{$a}{bytes_read} || 0) } keys %reads) {
87 my $bytes_read = $reads{$pid}{bytes_read} || 0;
90 $total_reads, $bytes_requested, $bytes_read);
/tools/testing/selftests/sparc64/drivers/
Dadi-test.c182 int ret, bytes_read = 0; in read_adi() local
187 ret = read(fd, buf + bytes_read, buf_sz - bytes_read); in read_adi()
194 bytes_read += ret; in read_adi()
196 } while (bytes_read < buf_sz); in read_adi()
199 DEBUG_PRINT_L3("\tRead %d bytes\n", bytes_read); in read_adi()
201 return bytes_read; in read_adi()
207 int ret, i, bytes_read = 0; in pread_adi() local
214 ret = pread(fd, buf + bytes_read, buf_sz - bytes_read, in pread_adi()
222 bytes_read += ret; in pread_adi()
225 } while (bytes_read < buf_sz); in pread_adi()
[all …]
/tools/testing/vsock/
Dvsock_perf.c215 ssize_t bytes_read; in run_receiver() local
219 bytes_read = read(fds.fd, data, buf_size_bytes); in run_receiver()
223 if (!bytes_read) in run_receiver()
226 if (bytes_read < 0) { in run_receiver()
231 total_recv += bytes_read; in run_receiver()
/tools/perf/tests/
Dcode-reading.c48 size_t bytes_read = 0; in read_objdump_chunk() local
67 bytes_read++; in read_objdump_chunk()
82 if (bytes_read > 1 && !host_is_bigendian()) { in read_objdump_chunk()
83 unsigned char *chunk_end = chunk_start + bytes_read - 1; in read_objdump_chunk()
95 return bytes_read; in read_objdump_chunk()
102 size_t ret, bytes_read = 0; in read_objdump_line() local
119 bytes_read += ret; in read_objdump_line()
124 return bytes_read; in read_objdump_line()
/tools/testing/selftests/filesystems/fuse/
Dfuse_daemon.c31 ssize_t bytes_read; in display_trace() local
45 TEST(bytes_read = read(tp, &c, sizeof(c)), in display_trace()
46 bytes_read == 1); in display_trace()
Dfuse_test.c95 ssize_t bytes_read; in bpf_test_trace_maybe() local
103 bytes_read = read(tp, trace_buffer, sizeof(trace_buffer)); in bpf_test_trace_maybe()
105 TESTCOND(bytes_read > 0); in bpf_test_trace_maybe()
106 else if (bytes_read <= 0) { in bpf_test_trace_maybe()
211 ssize_t bytes_read; in bpf_test_real() local
227 bytes_read = read(fd, read_buffer, strlen(test_data)); in bpf_test_real()
228 TESTEQUAL(bytes_read, strlen(test_data)); in bpf_test_real()
985 ssize_t bytes_read; in bpf_test_symlink() local
1004 bytes_read = read(fd, read_buffer, strlen(test_data)); in bpf_test_symlink()
1006 TESTEQUAL(bytes_read, strlen(test_data)); in bpf_test_symlink()
/tools/power/acpi/os_specific/service_layers/
Dosunixxf.c52 acpi_status acpi_ut_read_line(char *buffer, u32 buffer_length, u32 *bytes_read);
440 acpi_status acpi_os_get_line(char *buffer, u32 buffer_length, u32 *bytes_read) in acpi_os_get_line() argument
469 if (bytes_read) { in acpi_os_get_line()
470 *bytes_read = end_of_line; in acpi_os_get_line()
/tools/perf/util/
Devlist.c1996 size_t bytes_read = 0; in evlist__ctlfd_recv() local
2007 cmd_data[bytes_read++] = c; in evlist__ctlfd_recv()
2008 if (bytes_read == data_size) in evlist__ctlfd_recv()
2023 bytes_read == data_size ? "" : c == '\n' ? "\\n" : "\\0"); in evlist__ctlfd_recv()
2025 if (bytes_read > 0) { in evlist__ctlfd_recv()
2048 return bytes_read ? (int)bytes_read : err; in evlist__ctlfd_recv()
/tools/testing/selftests/filesystems/incfs/
Dincfs_test.c580 loff_t bytes_read = 0; in read_whole_file() local
597 bytes_read += read_result; in read_whole_file()
599 result = bytes_read; in read_whole_file()
611 int bytes_read = 0; in read_test_file() local
624 while (bytes_read < bytes_to_read) { in read_test_file()
626 read(fd, buf + bytes_read, bytes_to_read - bytes_read); in read_test_file()
633 bytes_read += read_result; in read_test_file()
635 result = bytes_read; in read_test_file()