| /tools/testing/selftests/bpf/progs/ |
| A D | btf_dump_test_case_ordering.c | 15 struct s2 { struct 16 struct s2 *s2; member 23 struct s2 s2; argument
|
| A D | strncmp_bench.c | 20 const char *s2) in local_strncmp() argument 27 ret = (unsigned char)s1[i] - (unsigned char)s2[i]; in local_strncmp()
|
| A D | netif_receive_skb.c | 37 const unsigned char *s2 = m2; in __strncmp() local 41 delta = s1[i] - s2[i]; in __strncmp() 42 if (delta || s1[i] == 0 || s2[i] == 0) in __strncmp()
|
| /tools/testing/selftests/powerpc/stringloops/ |
| A D | memcmp.c | 34 int test_memcmp(const void *s1, const void *s2, size_t n); 37 static void test_one(char *s1, char *s2, unsigned long max_offset, in test_one() argument 47 y = memcmp(s1+offset, s2+offset, size); in test_one() 48 x = test_memcmp(s1+offset, s2+offset, size); in test_one() 59 printf("%02x ", s2[i]); in test_one() 66 offset, size, s1, s2, vmx_count); in test_one() 77 char *p, *s1, *s2; in testcase() local 90 s2 = p + 3 * MAP_SIZE - alloc_size; in testcase() 102 char *rand_s2 = s2; in testcase() 128 char *rand_s2 = s2; in testcase() [all …]
|
| /tools/include/linux/ |
| A D | prandom.h | 8 __u32 s1, s2, s3, s4; member 29 state->s2 = __seed(i, 8U); in prandom_seed_state() 45 state->s2 = TAUSWORTHE(state->s2, 2U, 27U, 4294967288U, 2U); in prandom_u32_state() 49 return (state->s1 ^ state->s2 ^ state->s3 ^ state->s4); in prandom_u32_state()
|
| /tools/testing/selftests/net/netfilter/ |
| A D | conntrack_reverse_clash.c | 64 int s1, s2, status; in main() local 74 s2 = udp_socket(); in main() 81 if (bind(s2, (struct sockaddr *)&sa2, sizeof(sa2)) < 0) in main() 99 if (recvfrom(s2, buf, LEN, 0, (struct sockaddr *)&peer, &plen) < 0) in main() 105 if (sendto(s2, buf, LEN, 0, (struct sockaddr *)&sa1, sizeof(sa1)) != LEN) in main()
|
| /tools/testing/selftests/drivers/net/hw/ |
| A D | pp_alloc_fail.py | 83 s2 = 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/perf/tests/ |
| A D | sample-parsing.c | 21 if (s1->m != s2->m) { \ 28 if (memcmp(&s1->m, &s2->m, sizeof(s1->m))) { \ 44 struct perf_sample *s2, in samples_same() argument 109 if (memcmp(s1->raw_data, s2->raw_data, s1->raw_size)) { in samples_same() 121 (FLAG(s2).value == BS_EXPECTED_BE) : in samples_same() 122 (FLAG(s2).value == BS_EXPECTED_LE)); in samples_same() 130 struct regs_dump *s2_regs = perf_sample__user_regs(s2); in samples_same() 145 if (memcmp(s1->user_stack.data, s2->user_stack.data, in samples_same() 169 struct regs_dump *s2_regs = perf_sample__intr_regs(s2); in samples_same() 196 if (memcmp(s1->aux_sample.data, s2->aux_sample.data, in samples_same()
|
| /tools/testing/selftests/proc/ |
| A D | proc.h | 22 static inline bool streq(const char *s1, const char *s2) in streq() argument 24 return strcmp(s1, s2) == 0; in streq()
|
| /tools/testing/selftests/kvm/lib/riscv/ |
| A D | handlers.S | 47 csrr s2, CSR_STVAL 51 sd s2, 264(sp) 57 ld s2, 264(sp)
|
| /tools/mm/ |
| A D | slabinfo.c | 1066 struct slabinfo *s1,*s2; in sort_slabs() local 1069 for (s2 = s1 + 1; s2 < slabinfo + slabs; s2++) { 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() 1102 memcpy(s1, s2, sizeof(struct slabinfo)); in sort_slabs() [all …]
|
| /tools/perf/util/ |
| A D | string.c | 200 int strtailcmp(const char *s1, const char *s2) in strtailcmp() argument 203 int i2 = strlen(s2); in strtailcmp() 205 if (s1[i1] != s2[i2]) in strtailcmp() 206 return s1[i1] - s2[i2]; in strtailcmp()
|
| A D | help-unknown-cmd.c | 26 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 D | string2.h | 22 int strtailcmp(const char *s1, const char *s2);
|
| A D | stream.c | 228 char *s1, *s2; in print_callchain_pair() local 257 s2 = callchain_list__sym_name(pair_chain, cbuf2, sizeof(cbuf2), in print_callchain_pair() 260 scnprintf(buf1, sizeof(buf1), "%35s\t%35s", s1, s2); in print_callchain_pair()
|
| /tools/testing/selftests/powerpc/copyloops/ |
| A D | memmove_validate.c | 8 void *TEST_MEMMOVE(const void *s1, const void *s2, size_t n);
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | sockmap_listen.c | 248 int s1, s2; in test_update_existing() local 256 s2 = socket_loopback(family, sotype); in test_update_existing() 257 if (s2 < 0) in test_update_existing() 264 value = s2; in test_update_existing() 266 xclose(s2); in test_update_existing() 1152 int s1, s2, c, err; in test_reuseport_mixed_groups() local 1164 s2 = socket_loopback_reuseport(family, sotype, reuseport_prog); in test_reuseport_mixed_groups() 1165 if (s2 < 0) in test_reuseport_mixed_groups() 1168 err = add_to_sockmap(sock_map, s1, s2); in test_reuseport_mixed_groups() 1174 err = xgetsockname(s2, sockaddr(&addr), &len); in test_reuseport_mixed_groups() [all …]
|
| /tools/testing/selftests/ftrace/test.d/kprobe/ |
| A D | kprobe_args_syntax.tc | 37 BADREG=%s2
|
| /tools/include/nolibc/ |
| A D | string.h | 23 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/powerpc/alignment/ |
| A D | alignment_handler.c | 182 void dumpdata(char *s1, char *s2, int n, char *test_name) in dumpdata() argument 193 printf(" %02x", s2[i]); in dumpdata() 197 int test_memcmp(void *s1, void *s2, int n, int offset, char *test_name) in test_memcmp() argument 203 s2c = s2; in test_memcmp()
|
| /tools/testing/selftests/kvm/include/loongarch/ |
| A D | processor.h | 36 #define s2 $r25 macro
|
| /tools/perf/util/bpf_skel/ |
| A D | kwork_trace.bpf.c | 76 unsigned int sz, const char *s2) in local_strncmp() argument 82 ret = (unsigned char)s1[i] - (unsigned char)s2[i]; in local_strncmp()
|
| /tools/testing/selftests/kvm/include/riscv/ |
| A D | processor.h | 95 unsigned long s2; member
|
| /tools/testing/selftests/net/tcp_ao/ |
| A D | bench-lookups.c | 77 double s2; member 125 st->s2 += delta * ((double)nsec - st->mean); in measure_call()
|
| /tools/testing/selftests/bpf/ |
| A D | test_sockmap.c | 62 int s1, s2, c1, c2, p1, p2; variable 249 else if (s == s2) 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() 355 err = bind(s2, (struct sockaddr *)&addr, sizeof(addr)); in sockmap_init_sockets() 370 err = listen(s2, 32); in sockmap_init_sockets() 400 p2 = accept(s2, NULL, NULL); in sockmap_init_sockets() 409 c1, s1, c2, s2); in sockmap_init_sockets() 1393 close(s2); in run_options()
|