Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 127) sorted by relevance

123456

/tools/include/linux/
A Doverflow.h84 size_t bytes; in array_size() local
86 if (check_mul_overflow(a, b, &bytes)) in array_size()
89 return bytes; in array_size()
106 size_t bytes; in array3_size() local
108 if (check_mul_overflow(a, b, &bytes)) in array3_size()
110 if (check_mul_overflow(bytes, c, &bytes)) in array3_size()
113 return bytes; in array3_size()
118 size_t bytes; in __ab_c_size() local
120 if (check_mul_overflow(n, size, &bytes)) in __ab_c_size()
122 if (check_add_overflow(bytes, c, &bytes)) in __ab_c_size()
[all …]
/tools/testing/selftests/bpf/progs/
A Dtest_sockmap_kern.h240 if (bytes) in bpf_prog4()
243 if (bytes) in bpf_prog4()
244 bpf_msg_cork_bytes(msg, *bytes); in bpf_prog4()
272 if (bytes) in bpf_prog6()
275 if (bytes) in bpf_prog6()
313 int ret = 0, *bytes, zero = 0; in bpf_prog8() local
316 if (bytes) { in bpf_prog8()
335 int ret = 0, *bytes, zero = 0; in bpf_prog9() local
338 if (bytes) { in bpf_prog9()
355 if (bytes) in bpf_prog10()
[all …]
A Dnetcnt_prog.c37 percpu_cnt->bytes += skb->len; in bpf_nextcnt()
44 __sync_fetch_and_add(&cnt->bytes, in bpf_nextcnt()
45 percpu_cnt->bytes); in bpf_nextcnt()
46 percpu_cnt->bytes = 0; in bpf_nextcnt()
55 if (cnt->bytes + percpu_cnt->bytes - percpu_cnt->prev_bytes < dt) in bpf_nextcnt()
63 percpu_cnt->prev_bytes = cnt->bytes; in bpf_nextcnt()
/tools/arch/x86/include/asm/
A Dinsn.h19 insn_byte_t bytes[4]; member
36 p->bytes[n] = v; in insn_set_byte()
45 insn_byte_t bytes[4]; member
63 p->bytes[n] = v; in insn_set_byte()
178 return X86_REX2_M(insn->rex_prefix.bytes[1]); in insn_rex2_m_bit()
213 return X86_VEX_P(insn->vex_prefix.bytes[1]); in insn_vex_p_bits()
215 return X86_VEX_P(insn->vex_prefix.bytes[2]); in insn_vex_p_bits()
222 return X86_VEX_W(insn->vex_prefix.bytes[2]); in insn_vex_w_bit()
231 if (insn->prefixes.bytes[3]) in insn_last_prefix_id()
280 …for (idx = 0; idx < ARRAY_SIZE(insn->prefixes.bytes) && (prefix = insn->prefixes.bytes[idx]) != 0;…
[all …]
/tools/lib/
A Dstring.c185 static void *check_bytes8(const u8 *start, u8 value, unsigned int bytes) in check_bytes8() argument
187 while (bytes) { in check_bytes8()
191 bytes--; in check_bytes8()
205 void *memchr_inv(const void *start, int c, size_t bytes) in memchr_inv() argument
211 if (bytes <= 16) in memchr_inv()
212 return check_bytes8(start, value, bytes); in memchr_inv()
228 bytes -= prefix; in memchr_inv()
231 words = bytes / 8; in memchr_inv()
240 return check_bytes8(start, value, bytes % 8); in memchr_inv()
/tools/testing/selftests/bpf/prog_tests/
A Dnetcnt.c19 unsigned long bytes; in serial_test_netcnt() local
61 bytes = netcnt.bytes; in serial_test_netcnt()
66 bytes += percpu_netcnt[cpu].bytes; in serial_test_netcnt()
75 ASSERT_GE(bytes, packets * 104, "bytes"); in serial_test_netcnt()
A Dl4lb_all.c15 __u64 bytes; in test_l4lb() member
27 __u64 bytes = 0, pkts = 0; in test_l4lb() local
80 bytes += stats[i].bytes; in test_l4lb()
83 if (CHECK_FAIL(bytes != MAGIC_BYTES * NUM_ITER * 2 || in test_l4lb()
85 printf("test_l4lb:FAIL:stats %lld %lld\n", bytes, pkts); in test_l4lb()
A Dtask_fd_query_tp.c8 int err, bytes, efd, prog_fd, pmu_fd; in test_task_fd_query_tp_core() local
30 bytes = read(efd, buf, sizeof(buf)); in test_task_fd_query_tp_core()
32 if (CHECK(bytes <= 0 || bytes >= sizeof(buf), "read", in test_task_fd_query_tp_core()
33 "bytes %d errno %d\n", bytes, errno)) in test_task_fd_query_tp_core()
A Dxdp_noinline.c17 __u64 bytes; in test_xdp_noinline() member
29 __u64 bytes = 0, pkts = 0; in test_xdp_noinline() local
67 bytes += stats[i].bytes; in test_xdp_noinline()
70 ASSERT_EQ(bytes, MAGIC_BYTES * NUM_ITER * 2, "stats bytes"); in test_xdp_noinline()
A Dlwt_seg6local.c121 ssize_t bytes; in test_lwt_seg6local() local
156 bytes = sendto(cfd, foobar, sizeof(foobar), 0, in test_lwt_seg6local()
158 if (!ASSERT_EQ(bytes, sizeof(foobar), "send packet")) in test_lwt_seg6local()
162 bytes = read(sfd, buf, sizeof(buf)); in test_lwt_seg6local()
163 if (!ASSERT_EQ(bytes, sizeof(buf), "receive packet")) in test_lwt_seg6local()
A Dtp_attach_query.c7 int i, j, bytes, efd, err, prog_fd[num_progs], pmu_fd[num_progs]; in serial_test_tp_attach_query() local
29 bytes = read(efd, buf, sizeof(buf)); in serial_test_tp_attach_query()
31 if (CHECK(bytes <= 0 || bytes >= sizeof(buf), in serial_test_tp_attach_query()
32 "read", "bytes %d errno %d\n", bytes, errno)) in serial_test_tp_attach_query()
/tools/include/tools/
A Dlibc_compat.h13 size_t bytes; in reallocarray() local
15 if (unlikely(check_mul_overflow(nmemb, size, &bytes))) in reallocarray()
17 return realloc(ptr, bytes); in reallocarray()
/tools/testing/selftests/net/tcp_ao/
A Dseq-ext.c72 ssize_t bytes; in server_fn() local
92 bytes = test_server_run(sk, quota, TEST_TIMEOUT_SEC); in server_fn()
93 if (bytes != quota) { in server_fn()
94 if (bytes > 0) in server_fn()
95 test_fail("server served: %zd", bytes); in server_fn()
97 test_fail("server returned: %zd", bytes); in server_fn()
128 bytes = test_server_run(sk, quota, TEST_TIMEOUT_SEC); in server_fn()
129 if (bytes != quota) { in server_fn()
130 if (bytes > 0) in server_fn()
131 test_fail("server served: %zd", bytes); in server_fn()
[all …]
A Drestore.c24 ssize_t bytes; in try_server_run() local
44 bytes = test_server_run(sk, quota, TEST_TIMEOUT_SEC); in try_server_run()
45 if (bytes != quota) { in try_server_run()
46 test_fail("%s: server served: %zd", tst_name, bytes); in try_server_run()
54 bytes = test_skpair_server(sk, quota, poll_cnt, &dummy); in try_server_run()
56 if (bytes > 0) in try_server_run()
57 test_fail("%s: server served: %zd", tst_name, bytes); in try_server_run()
61 if (bytes != quota) in try_server_run()
62 test_fail("%s: server served: %zd", tst_name, bytes); in try_server_run()
A Drst.c88 ssize_t bytes; in test_server_active_rst() local
111 bytes = test_server_run(sk, quota, 0); in test_server_active_rst()
112 if (bytes != quota) in test_server_active_rst()
113 test_error("servered only %zd bytes", bytes); in test_server_active_rst()
115 test_ok("servered %zd bytes", bytes); in test_server_active_rst()
133 ssize_t bytes; in test_server_passive_rst() local
153 bytes = test_server_run(sk, quota, TEST_TIMEOUT_SEC); in test_server_passive_rst()
154 if (bytes != quota) { in test_server_passive_rst()
155 if (bytes > 0) in test_server_passive_rst()
156 test_fail("server served: %zd", bytes); in test_server_passive_rst()
[all …]
A Dicmps-discard.c59 ssize_t bytes; in serve_interfered() local
66 bytes = test_server_run(sk, test_quota, 0); in serve_interfered()
85 if (bytes < 0) in serve_interfered()
86 test_icmps_fail("Server failed with %zd: %s", bytes, strerrordesc_np(-bytes)); in serve_interfered()
194 ssize_t bytes; in icmp_interfere4() local
220 bytes = sendto(sk, &packet, sizeof(packet), 0, in icmp_interfere4()
222 if (bytes != sizeof(packet)) in icmp_interfere4()
223 test_error("send(): %zd", bytes); in icmp_interfere4()
309 ssize_t bytes; in icmp6_interfere() local
336 if (bytes != sizeof(packet)) in icmp6_interfere()
[all …]
A Dconnect.c9 ssize_t bytes; in server_fn() local
26 bytes = test_server_run(sk, 0, 0); in server_fn()
28 test_fail("server served: %zd", bytes); in server_fn()
/tools/testing/selftests/ublk/
A Dcommon.c23 unsigned long bytes; in backing_file_tgt_init() local
41 bytes = st.st_size; in backing_file_tgt_init()
43 if (ioctl(fd, BLKGETSIZE64, &bytes) != 0) in backing_file_tgt_init()
49 dev->tgt.backing_file_size[i] = bytes; in backing_file_tgt_init()
/tools/testing/selftests/kselftest/
A Dprefix.pl16 my $bytes = sysread(STDIN, $char, 1);
17 exit 0 if ($bytes == 0);
/tools/testing/selftests/tpm2/
A Dtpm2.py272 def __init__(self, user_auth=bytes(), data=bytes()):
301 auth_policy=bytes(), parameters=bytes(),
452 bytes(auth_cmd),
580 bytes(auth_cmd),
582 bytes(sensitive),
584 bytes(public),
618 bytes(auth_cmd),
622 bytes(public),
645 bytes(auth_cmd),
663 bytes(auth_cmd))
[all …]
/tools/iio/
A Diio_generic_buffer.c56 unsigned int bytes = 0; in size_from_channelarray() local
61 if (channels[i].bytes > max) in size_from_channelarray()
62 max = channels[i].bytes; in size_from_channelarray()
63 if (bytes % channels[i].bytes == 0) in size_from_channelarray()
64 channels[i].location = bytes; in size_from_channelarray()
66 channels[i].location = bytes - bytes % channels[i].bytes in size_from_channelarray()
67 + channels[i].bytes; in size_from_channelarray()
69 bytes = channels[i].location + channels[i].bytes; in size_from_channelarray()
77 misalignment = bytes % max; in size_from_channelarray()
79 bytes += max - misalignment; in size_from_channelarray()
[all …]
/tools/testing/selftests/bpf/
A Dnetcnt_common.h26 __u64 bytes; member
39 __u64 bytes; member
/tools/tracing/latency/
A Dlatency-collector.c723 int bytes; in sleeptable_resize() local
733 if (bytes < 0) in sleeptable_resize()
1103 bytes += r; in __print_skipmessage()
1148 p += bytes; in print_tracefile()
1173 if (bytes < 0) { in print_tracefile()
1177 p += bytes; in print_tracefile()
1185 if (bytes < 0) { in print_tracefile()
1190 p += bytes; in print_tracefile()
1204 if (bytes == 0) in print_tracefile()
1206 p += bytes; in print_tracefile()
[all …]
/tools/testing/selftests/net/packetdrill/
A Dtcp_nagle_sockopt_cork_nodelay.pkt20 // Unset TCP_CORK should push pending bytes out
31 // Set TCP_NODELAY sockopt should push pending bytes out
40 // Set TCP_NODELAY sockopt should push pending bytes out
/tools/testing/selftests/net/tcp_ao/lib/
A Dsock.c597 ssize_t bytes, sent; in _test_server_run() local
606 if (bytes < 0) in _test_server_run()
608 if (bytes == 0) in _test_server_run()
618 if (sent != bytes) in _test_server_run()
620 total += bytes; in _test_server_run()
675 if (sent != bytes) in test_client_loop()
678 bytes = 0; in test_client_loop()
687 got = recv(sk, msg + bytes, sizeof(msg) - bytes, 0); in test_client_loop()
690 bytes += got; in test_client_loop()
691 } while (bytes < sent); in test_client_loop()
[all …]

Completed in 45 milliseconds

123456