Home
last modified time | relevance | path

Searched refs:s1 (Results 1 – 25 of 32) sorted by relevance

12

/tools/testing/selftests/powerpc/stringloops/
A Dmemcmp.c34 int test_memcmp(const void *s1, const void *s2, size_t n);
47 y = memcmp(s1+offset, s2+offset, size); in test_one()
48 x = test_memcmp(s1+offset, s2+offset, size); in test_one()
55 printf("%02x ", s1[i]); in test_one()
66 offset, size, s1, s2, vmx_count); in test_one()
77 char *p, *s1, *s2; in testcase() local
89 s1 = p + MAP_SIZE - alloc_size; in testcase()
101 char *rand_s1 = s1; in testcase()
105 s1[j] = random(); in testcase()
127 char *rand_s1 = s1; in testcase()
[all …]
/tools/testing/selftests/bpf/progs/
A Dbtf_dump_test_case_ordering.c9 struct s1 {}; struct
22 struct s1 s1; member
27 struct s1 s1; member
A Dstrncmp_bench.c19 static __always_inline int local_strncmp(const char *s1, unsigned int sz, in local_strncmp() argument
27 ret = (unsigned char)s1[i] - (unsigned char)s2[i]; in local_strncmp()
28 if (ret || !s1[i]) in local_strncmp()
A Dnetif_receive_skb.c36 const unsigned char *s1 = m1; in __strncmp() local
41 delta = s1[i] - s2[i]; in __strncmp()
42 if (delta || s1[i] == 0 || s2[i] == 0) in __strncmp()
/tools/include/linux/
A Dprandom.h8 __u32 s1, s2, s3, s4; member
28 state->s1 = __seed(i, 2U); in prandom_seed_state()
44 state->s1 = TAUSWORTHE(state->s1, 6U, 13U, 4294967294U, 18U); in prandom_u32_state()
49 return (state->s1 ^ state->s2 ^ state->s3 ^ state->s4); in prandom_u32_state()
/tools/perf/tests/
A Dsample-parsing.c21 if (s1->m != s2->m) { \
28 if (memcmp(&s1->m, &s2->m, sizeof(s1->m))) { \
43 static bool samples_same(struct perf_sample *s1, in samples_same() argument
89 for (i = 0; i < s1->read.group.nr; i++) { in samples_same()
103 for (i = 0; i < s1->callchain->nr; i++) in samples_same()
109 if (memcmp(s1->raw_data, s2->raw_data, s1->raw_size)) { in samples_same()
118 for (i = 0; i < s1->branch_stack->nr; i++) { in samples_same()
145 if (memcmp(s1->user_stack.data, s2->user_stack.data, in samples_same()
146 s1->user_stack.size)) { in samples_same()
196 if (memcmp(s1->aux_sample.data, s2->aux_sample.data, in samples_same()
[all …]
/tools/testing/selftests/net/netfilter/
A Dconntrack_reverse_clash.c64 int s1, s2, status; in main() local
73 s1 = udp_socket(); in main()
79 if (bind(s1, (struct sockaddr *)&sa1, sizeof(sa1)) < 0) in main()
96 if (sendto(s1, buf, LEN, 0, (struct sockaddr *)&sa2, sizeof(sa2)) != LEN) in main()
108 if (recvfrom(s1, buf, LEN, 0, (struct sockaddr *)&peer, &plen) < 0) in main()
/tools/testing/selftests/drivers/net/hw/
A Dpp_alloc_fail.py81 s1 = get_stats()
85 if s2['rx-alloc-fail'] - s1['rx-alloc-fail'] < 1:
87 if s2['rx-alloc-fail'] - s1['rx-alloc-fail'] < 100:
88 … raise KsftSkipEx("Allocation increasing too slowly", s2['rx-alloc-fail'] - s1['rx-alloc-fail'],
89 "packets:", s2['rx-packets'] - s1['rx-packets'])
/tools/testing/selftests/proc/
A Dproc.h22 static inline bool streq(const char *s1, const char *s2) in streq() argument
24 return strcmp(s1, s2) == 0; in streq()
/tools/testing/selftests/net/openvswitch/
A Dopenvswitch.sh257 server s0 s1 172.31.110.20/24 -u || return 1
354 ip netns exec server ip addr add 172.31.110.20/24 dev s1
355 ip netns exec server ip link set s1 up
440 ip netns exec server ip addr add 172.31.110.20/24 dev s1
441 ip netns exec server ip link set s1 up
475 ip netns exec server ip addr add 172.31.110.20/24 dev s1
476 ip netns exec server ip link set s1 up
541 ip netns exec server ip addr add 172.31.110.20/24 dev s1
542 ip netns exec server ip link set s1 up
581 ip netns exec server ip link set s1 up
[all …]
/tools/testing/selftests/kvm/lib/riscv/
A Dhandlers.S46 csrr s1, CSR_SSTATUS
50 sd s1, 256(sp)
58 ld s1, 256(sp)
61 csrw CSR_SSTATUS, s1
/tools/testing/selftests/net/forwarding/
A Drouter_mpath_seed.sh198 local s1=$1; shift
200 jq -n --argjson s0 "$s0" --argjson s1 "$s1" -f /dev/stdin <<-"EOF"
202 map($s1[.] - $s0[.]) |
215 local s1=$(nh_stats_snapshot $group_id)
217 get_active_nh "$s0" "$s1"
/tools/mm/
A Dslabinfo.c1066 struct slabinfo *s1,*s2; in sort_slabs() local
1068 for (s1 = slabinfo; s1 < slabinfo + slabs; s1++) { in sort_slabs()
1073 if (slab_size(s1) == slab_size(s2)) in sort_slabs()
1074 result = strcasecmp(s1->name, s2->name); in sort_slabs()
1076 result = slab_size(s1) < slab_size(s2); in sort_slabs()
1083 if (slab_waste(s1) == slab_waste(s2)) in sort_slabs()
1088 if (s1->partial == s2->partial) in sort_slabs()
1091 result = s1->partial < s2->partial; in sort_slabs()
1093 result = strcasecmp(s1->name, s2->name); in sort_slabs()
1101 memcpy(&t, s1, sizeof(struct slabinfo)); in sort_slabs()
[all …]
/tools/perf/util/
A Dstring.c200 int strtailcmp(const char *s1, const char *s2) in strtailcmp() argument
202 int i1 = strlen(s1); in strtailcmp()
205 if (s1[i1] != s2[i2]) in strtailcmp()
206 return s1[i1] - s2[i2]; in strtailcmp()
A Dhelp-unknown-cmd.c26 const char *s1 = (*c1)->name, *s2 = (*c2)->name; in levenshtein_compare() local
29 return l1 != l2 ? l1 - l2 : strcmp(s1, s2); in levenshtein_compare()
A Dstring2.h22 int strtailcmp(const char *s1, const char *s2);
A Dstream.c228 char *s1, *s2; in print_callchain_pair() local
255 s1 = callchain_list__sym_name(base_chain, cbuf1, sizeof(cbuf1), in print_callchain_pair()
260 scnprintf(buf1, sizeof(buf1), "%35s\t%35s", s1, s2); in print_callchain_pair()
/tools/testing/selftests/powerpc/copyloops/
A Dmemmove_validate.c8 void *TEST_MEMMOVE(const void *s1, const void *s2, size_t n);
/tools/perf/util/bpf_skel/
A Dkwork_trace.bpf.c75 static __always_inline int local_strncmp(const char *s1, in local_strncmp() argument
82 ret = (unsigned char)s1[i] - (unsigned char)s2[i]; in local_strncmp()
83 if (ret || !s1[i]) in local_strncmp()
/tools/include/nolibc/
A Dstring.h23 int memcmp(const void *s1, const void *s2, size_t n) in memcmp() argument
28 while (ofs < n && !(c1 = ((unsigned char *)s1)[ofs] - ((unsigned char *)s2)[ofs])) { in memcmp()
/tools/testing/selftests/bpf/prog_tests/
A Dsockmap_listen.c248 int s1, s2; in test_update_existing() local
252 s1 = socket_loopback(family, sotype); in test_update_existing()
253 if (s1 < 0) in test_update_existing()
261 value = s1; in test_update_existing()
268 xclose(s1); in test_update_existing()
1152 int s1, s2, c, err; in test_reuseport_mixed_groups() local
1160 s1 = socket_loopback_reuseport(family, sotype, reuseport_prog); in test_reuseport_mixed_groups()
1161 if (s1 < 0) in test_reuseport_mixed_groups()
1168 err = add_to_sockmap(sock_map, s1, s2); in test_reuseport_mixed_groups()
1212 xclose(s1); in test_reuseport_mixed_groups()
/tools/testing/selftests/powerpc/alignment/
A Dalignment_handler.c182 void dumpdata(char *s1, char *s2, int n, char *test_name) in dumpdata() argument
189 printf(" %02x", s1[i]); in dumpdata()
197 int test_memcmp(void *s1, void *s2, int n, int offset, char *test_name) in test_memcmp() argument
201 s1c = s1; in test_memcmp()
/tools/testing/selftests/kvm/include/loongarch/
A Dprocessor.h35 #define s1 $r24 macro
/tools/testing/selftests/kvm/include/riscv/
A Dprocessor.h86 unsigned long s1; member
/tools/testing/selftests/bpf/
A Dtest_sockmap.c62 int s1, s2, c1, c2, p1, p2; variable
247 else if (s == s1) in sock_to_string()
310 int *fds[4] = {&s1, &s2, &c1, &c2}; in sockmap_init_sockets()
312 s1 = s2 = p1 = p2 = c1 = c2 = 0; in sockmap_init_sockets()
348 err = bind(s1, (struct sockaddr *)&addr, sizeof(addr)); in sockmap_init_sockets()
363 err = listen(s1, 32); in sockmap_init_sockets()
394 p1 = accept(s1, NULL, NULL); in sockmap_init_sockets()
409 c1, s1, c2, s2); in sockmap_init_sockets()
1392 close(s1); in run_options()

Completed in 784 milliseconds

12