Home
last modified time | relevance | path

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

1234

/tools/testing/selftests/bpf/progs/
Dtest_sockmap_kern.h237 int *bytes, zero = 0, one = 1, two = 2, three = 3, four = 4, five = 5; in bpf_prog4() local
240 bytes = bpf_map_lookup_elem(&sock_apply_bytes, &zero); in bpf_prog4()
241 if (bytes) in bpf_prog4()
242 bpf_msg_apply_bytes(msg, *bytes); in bpf_prog4()
243 bytes = bpf_map_lookup_elem(&sock_cork_bytes, &zero); in bpf_prog4()
244 if (bytes) in bpf_prog4()
245 bpf_msg_cork_bytes(msg, *bytes); in bpf_prog4()
268 int *bytes, *start, *end, *start_push, *end_push, *start_pop, *pop, *f; in bpf_prog6() local
272 bytes = bpf_map_lookup_elem(&sock_apply_bytes, &zero); in bpf_prog6()
273 if (bytes) in bpf_prog6()
[all …]
Dnetcnt_prog.c38 percpu_cnt->bytes += skb->len; in bpf_nextcnt()
45 __sync_fetch_and_add(&cnt->bytes, in bpf_nextcnt()
46 percpu_cnt->bytes); in bpf_nextcnt()
47 percpu_cnt->bytes = 0; in bpf_nextcnt()
56 if (cnt->bytes + percpu_cnt->bytes - percpu_cnt->prev_bytes < dt) in bpf_nextcnt()
64 percpu_cnt->prev_bytes = cnt->bytes; in bpf_nextcnt()
/tools/lib/
Dstring.c172 static void *check_bytes8(const u8 *start, u8 value, unsigned int bytes) in check_bytes8() argument
174 while (bytes) { in check_bytes8()
178 bytes--; in check_bytes8()
192 void *memchr_inv(const void *start, int c, size_t bytes) in memchr_inv() argument
198 if (bytes <= 16) in memchr_inv()
199 return check_bytes8(start, value, bytes); in memchr_inv()
215 bytes -= prefix; in memchr_inv()
218 words = bytes / 8; in memchr_inv()
227 return check_bytes8(start, value, bytes % 8); in memchr_inv()
/tools/testing/selftests/bpf/
Dtest_netcnt.c44 unsigned long bytes; in main() local
113 bytes = netcnt.bytes; in main()
122 bytes += percpu_netcnt[cpu].bytes; in main()
134 if (bytes != packets * 104) { in main()
135 printf("Unexpected bytes count: %lu\n", bytes); in main()
Dget_cgroup_id_user.c52 int err, bytes, efd, prog_fd, pmu_fd; in main() local
87 bytes = read(efd, buf, sizeof(buf)); in main()
89 if (CHECK(bytes <= 0 || bytes >= sizeof(buf), "read", in main()
90 "bytes %d errno %d\n", bytes, errno)) in main()
Dnetcnt_common.h11 __u64 bytes; member
21 __u64 bytes; member
/tools/arch/x86/include/asm/
Dinsn.h16 insn_byte_t bytes[4]; member
161 return X86_VEX3_M(insn->vex_prefix.bytes[1]); in insn_vex_m_bits()
163 return X86_EVEX_M(insn->vex_prefix.bytes[1]); in insn_vex_m_bits()
169 return X86_VEX_P(insn->vex_prefix.bytes[1]); in insn_vex_p_bits()
171 return X86_VEX_P(insn->vex_prefix.bytes[2]); in insn_vex_p_bits()
180 if (insn->prefixes.bytes[3]) in insn_last_prefix_id()
181 return inat_get_last_prefix_id(insn->prefixes.bytes[3]); in insn_last_prefix_id()
229 …for (idx = 0; idx < ARRAY_SIZE(insn->prefixes.bytes) && (prefix = insn->prefixes.bytes[idx]) != 0;…
244 return insn->opcode.bytes[0] == POP_SS_OPCODE || in insn_masking_exception()
245 (insn->opcode.bytes[0] == MOV_SREG_OPCODE && in insn_masking_exception()
[all …]
/tools/testing/selftests/bpf/prog_tests/
Dbpf_tcp_ca.c51 ssize_t nr_sent = 0, bytes = 0; in server() local
67 while (bytes < total_bytes && !READ_ONCE(stop)) { in server()
69 min(total_bytes - bytes, sizeof(batch)), 0); in server()
76 bytes += nr_sent; in server()
79 CHECK(bytes != total_bytes, "send", "%zd != %u nr_sent:%zd errno:%d\n", in server()
80 bytes, total_bytes, nr_sent, errno); in server()
95 ssize_t nr_recv = 0, bytes = 0; in do_test() local
160 while (bytes < total_bytes && !READ_ONCE(stop)) { in do_test()
162 min(total_bytes - bytes, sizeof(batch)), 0); in do_test()
167 bytes += nr_recv; in do_test()
[all …]
Dxdp_noinline.c17 __u64 bytes; in test_xdp_noinline() member
30 __u64 bytes = 0, pkts = 0; in test_xdp_noinline() local
60 bytes += stats[i].bytes; in test_xdp_noinline()
63 CHECK(bytes != MAGIC_BYTES * NUM_ITER * 2 || pkts != NUM_ITER * 2, in test_xdp_noinline()
65 (unsigned long long)bytes, (unsigned long long)pkts); in test_xdp_noinline()
Dl4lb_all.c15 __u64 bytes; in test_l4lb() member
28 __u64 bytes = 0, pkts = 0; in test_l4lb() local
71 bytes += stats[i].bytes; in test_l4lb()
74 if (CHECK_FAIL(bytes != MAGIC_BYTES * NUM_ITER * 2 || in test_l4lb()
76 printf("test_l4lb:FAIL:stats %lld %lld\n", bytes, pkts); in test_l4lb()
Dtask_fd_query_tp.c8 int err, bytes, efd, prog_fd, pmu_fd; in test_task_fd_query_tp_core() local
25 bytes = read(efd, buf, sizeof(buf)); in test_task_fd_query_tp_core()
27 if (CHECK(bytes <= 0 || bytes >= sizeof(buf), "read", in test_task_fd_query_tp_core()
28 "bytes %d errno %d\n", bytes, errno)) in test_task_fd_query_tp_core()
Dtp_attach_query.c7 int i, j, bytes, efd, err, prog_fd[num_progs], pmu_fd[num_progs]; in test_tp_attach_query() local
24 bytes = read(efd, buf, sizeof(buf)); in test_tp_attach_query()
26 if (CHECK(bytes <= 0 || bytes >= sizeof(buf), in test_tp_attach_query()
27 "read", "bytes %d errno %d\n", bytes, errno)) in test_tp_attach_query()
/tools/include/linux/
Doverflow.h218 size_t bytes; in array_size() local
220 if (check_mul_overflow(a, b, &bytes)) in array_size()
223 return bytes; in array_size()
240 size_t bytes; in array3_size() local
242 if (check_mul_overflow(a, b, &bytes)) in array3_size()
244 if (check_mul_overflow(bytes, c, &bytes)) in array3_size()
247 return bytes; in array3_size()
252 size_t bytes; in __ab_c_size() local
254 if (check_mul_overflow(n, size, &bytes)) in __ab_c_size()
256 if (check_add_overflow(bytes, c, &bytes)) in __ab_c_size()
[all …]
/tools/include/tools/
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/crypto/
Dgen_fips140_testvecs.py28 message = bytes('This is a 32-byte test message.\0', 'ascii')
29 aes_key = bytes('128-bit AES key\0', 'ascii')
30 aes_xts_key = bytes('This is an AES-128-XTS key.\0\0\0\0\0', 'ascii')
31 aes_iv = bytes('ABCDEFGHIJKLMNOP', 'ascii')
32 assoc = bytes('associated data string', 'ascii')
33 hmac_key = bytes('128-bit HMAC key', 'ascii')
85 nonce=bytes(), initial_value=aes_iv)
/tools/iio/
Diio_generic_buffer.c54 unsigned int bytes = 0; in size_from_channelarray() local
59 if (channels[i].bytes > max) in size_from_channelarray()
60 max = channels[i].bytes; in size_from_channelarray()
61 if (bytes % channels[i].bytes == 0) in size_from_channelarray()
62 channels[i].location = bytes; in size_from_channelarray()
64 channels[i].location = bytes - bytes % channels[i].bytes in size_from_channelarray()
65 + channels[i].bytes; in size_from_channelarray()
67 bytes = channels[i].location + channels[i].bytes; in size_from_channelarray()
75 misalignment = bytes % max; in size_from_channelarray()
77 bytes += max - misalignment; in size_from_channelarray()
[all …]
Diio_utils.h43 unsigned bytes; member
60 int iioutils_get_type(unsigned *is_signed, unsigned *bytes, unsigned *bits_used,
/tools/testing/selftests/tpm2/
Dtpm2.py250 def __init__(self, session_handle=TPM2_RS_PW, nonce=bytes(),
251 session_attributes=0, hmac=bytes()):
271 def __init__(self, user_auth=bytes(), data=bytes()):
300 auth_policy=bytes(), parameters=bytes(),
301 unique=bytes()):
451 bytes(auth_cmd),
506 bytes(dig),
543 def create_root_key(self, auth_value = bytes()):
579 bytes(auth_cmd),
581 bytes(sensitive),
[all …]
/tools/testing/selftests/kselftest/
Dprefix.pl16 my $bytes = sysread(STDIN, $char, 1);
17 exit 0 if ($bytes == 0);
/tools/arch/x86/lib/
Dinsn.c127 if (prefixes->bytes[i] == b) in insn_get_prefixes()
132 prefixes->bytes[nb++] = b; in insn_get_prefixes()
151 if (lb && lb != insn->prefixes.bytes[3]) { in insn_get_prefixes()
152 if (unlikely(insn->prefixes.bytes[3])) { in insn_get_prefixes()
154 b = insn->prefixes.bytes[3]; in insn_get_prefixes()
156 if (prefixes->bytes[i] == lb) in insn_get_prefixes()
157 prefixes->bytes[i] = b; in insn_get_prefixes()
159 insn->prefixes.bytes[3] = lb; in insn_get_prefixes()
191 insn->vex_prefix.bytes[0] = b; in insn_get_prefixes()
192 insn->vex_prefix.bytes[1] = b2; in insn_get_prefixes()
[all …]
/tools/perf/arch/x86/tests/
Dintel-pt-pkt-decoder-test.c22 u8 bytes[INTEL_PT_PKT_MAX_SZ]; member
173 static int dump_packet(struct intel_pt_pkt *packet, u8 *bytes, int len) in dump_packet() argument
179 pr_debug(" %02x", bytes[i]); in dump_packet()
197 dump_packet(&d->packet, d->bytes, d->len); in decoding_failed()
254 ret = intel_pt_get_packet(d->bytes, d->len, &packet, &ctx); in test_one()
283 ret = dump_packet(&d->packet, d->bytes, d->len); in test_one()
/tools/testing/kunit/test_data/
Dtest_is_test_passed-no_tests_run.log7 Adding 24743936 bytes to physical memory to account for exec-shield gap
11 PID hash table entries: 256 (order: -1, 2048 bytes)
12 Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)
13 Inode-cache hash table entries: 4096 (order: 3, 32768 bytes)
20 Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
21 Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes)
26 futex hash table entries: 256 (order: 0, 6144 bytes)
/tools/perf/Documentation/
Dperf-kmem.txt44 Sort the output (default: 'frag,hit,bytes' for slab and 'bytes,hit'
45 for page). Available sort keys are 'ptr, callsite, bytes, hit,
46 pingpong, frag' for slab and 'page, callsite, bytes, hit, order,
/tools/usb/ffs-aio-example/simple/host_app/
Dtest.c171 int bytes; in main() local
173 &bytes, 500); in main()
175 &bytes, 500); in main()
/tools/testing/selftests/drivers/net/mlxsw/
Dsch_ets.sh72 qdisc_parent_stats_get $swp2 10:$((${streams[0]} + 1)) .bytes \
76 qdisc_parent_stats_get $swp2 10:$((stream + 1)) .bytes

1234