/tools/testing/selftests/powerpc/stringloops/ |
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() 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() [all …]
|
/tools/perf/tests/ |
D | sample-parsing.c | 20 if (s1->m != s2->m) { \ 27 if (memcmp(&s1->m, &s2->m, sizeof(s1->m))) { \ 33 static bool samples_same(const struct perf_sample *s1, in samples_same() argument 79 for (i = 0; i < s1->read.group.nr; i++) in samples_same() 88 for (i = 0; i < s1->callchain->nr; i++) in samples_same() 94 if (memcmp(s1->raw_data, s2->raw_data, s1->raw_size)) { in samples_same() 103 for (i = 0; i < s1->branch_stack->nr; i++) in samples_same() 108 size_t sz = hweight_long(s1->user_regs.mask) * sizeof(u64); in samples_same() 112 if (s1->user_regs.abi && in samples_same() 113 (!s1->user_regs.regs || !s2->user_regs.regs || in samples_same() [all …]
|
/tools/testing/selftests/bpf/progs/ |
D | btf_dump_test_case_ordering.c | 9 struct s1 {}; struct 22 struct s1 s1; member 27 struct s1 s1; member
|
D | netif_receive_skb.c | 39 const unsigned char *s1 = m1; in __strncmp() local 44 delta = s1[i] - s2[i]; in __strncmp() 45 if (delta || s1[i] == 0 || s2[i] == 0) in __strncmp()
|
/tools/testing/selftests/filesystems/fuse/ |
D | bpf_loader.c | 29 struct s s(const char *s1) in s() argument 33 if (!s1) in s() 36 s.s = malloc(strlen(s1) + 1); in s() 40 strcpy(s.s, s1); in s() 44 struct s sn(const char *s1, const char *s2) in sn() argument 48 if (!s1) in sn() 51 s.s = malloc(s2 - s1 + 1); in sn() 55 strncpy(s.s, s1, s2 - s1); in sn() 56 s.s[s2 - s1] = 0; in sn() 60 int s_cmp(struct s s1, struct s s2) in s_cmp() argument [all …]
|
D | test_fuse.h | 38 struct s s(const char *s1); 39 struct s sn(const char *s1, const char *s2); 40 int s_cmp(struct s s1, struct s s2); 41 struct s s_cat(struct s s1, struct s s2); 42 struct s s_splitleft(struct s s1, char c); 43 struct s s_splitright(struct s s1, char c); 44 struct s s_word(struct s s1, char c, size_t n); 45 struct s s_path(struct s s1, struct s s2); 46 struct s s_pathn(size_t n, struct s s1, ...);
|
/tools/testing/selftests/powerpc/dscr/ |
D | dscr_default_test.c | 25 unsigned long s1, s2; in do_test() local 27 s1 = READ_ONCE(sequence); in do_test() 28 if (s1 & 1) in do_test() 39 if (s1 != s2) in do_test()
|
/tools/testing/selftests/proc/ |
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/perf/util/ |
D | string.c | 201 int strtailcmp(const char *s1, const char *s2) in strtailcmp() argument 203 int i1 = strlen(s1); in strtailcmp() 206 if (s1[i1] != s2[i2]) in strtailcmp() 207 return s1[i1] - s2[i2]; in strtailcmp()
|
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()
|
D | string2.h | 22 int strtailcmp(const char *s1, const char *s2);
|
D | stream.c | 229 char *s1, *s2; in print_callchain_pair() local 256 s1 = callchain_list__sym_name(base_chain, cbuf1, sizeof(cbuf1), in print_callchain_pair() 261 scnprintf(buf1, sizeof(buf1), "%35s\t%35s", s1, s2); in print_callchain_pair()
|
D | cpumap.c | 170 struct aggr_cpu_id s1; in cpu_map__build_map() local 179 s1 = f(cpus, cpu, data); in cpu_map__build_map() 181 if (cpu_map__compare_aggr_cpu_id(s1, c->map[s2])) in cpu_map__build_map() 185 c->map[c->nr] = s1; in cpu_map__build_map()
|
D | header.h | 167 int strcmp_cpuid_str(const char *s1, const char *s2);
|
/tools/perf/arch/x86/tests/ |
D | sample-parsing.c | 19 if (s1->m != s2->m) { \ 25 static bool samples_same(const struct perf_sample *s1, in samples_same() argument
|
/tools/vm/ |
D | slabinfo.c | 1064 struct slabinfo *s1,*s2; in sort_slabs() local 1066 for (s1 = slabinfo; s1 < slabinfo + slabs; s1++) { in sort_slabs() 1067 for (s2 = s1 + 1; s2 < slabinfo + slabs; s2++) { in sort_slabs() 1071 if (slab_size(s1) == slab_size(s2)) in sort_slabs() 1072 result = strcasecmp(s1->name, s2->name); in sort_slabs() 1074 result = slab_size(s1) < slab_size(s2); in sort_slabs() 1076 if (slab_activity(s1) == slab_activity(s2)) in sort_slabs() 1077 result = strcasecmp(s1->name, s2->name); in sort_slabs() 1079 result = slab_activity(s1) < slab_activity(s2); in sort_slabs() 1081 if (slab_waste(s1) == slab_waste(s2)) in sort_slabs() [all …]
|
/tools/testing/selftests/powerpc/alignment/ |
D | alignment_handler.c | 182 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/bpf/ |
D | test_sockmap.c | 62 int s1, s2, c1, c2, p1, p2; variable 240 else if (s == s1) in sock_to_string() 303 int *fds[4] = {&s1, &s2, &c1, &c2}; in sockmap_init_sockets() 305 s1 = s2 = p1 = p2 = c1 = c2 = 0; in sockmap_init_sockets() 341 err = bind(s1, (struct sockaddr *)&addr, sizeof(addr)); in sockmap_init_sockets() 356 err = listen(s1, 32); in sockmap_init_sockets() 387 p1 = accept(s1, NULL, NULL); in sockmap_init_sockets() 402 c1, s1, c2, s2); in sockmap_init_sockets() 1256 close(s1); in run_options()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | sockmap_listen.c | 528 int s1, s2; in test_update_existing() local 532 s1 = socket_loopback(family, sotype); in test_update_existing() 533 if (s1 < 0) in test_update_existing() 541 value = s1; in test_update_existing() 548 xclose(s1); in test_update_existing() 1346 int s1, s2, c, err; in test_reuseport_mixed_groups() local 1354 s1 = socket_loopback_reuseport(family, sotype, reuseport_prog); in test_reuseport_mixed_groups() 1355 if (s1 < 0) in test_reuseport_mixed_groups() 1362 err = add_to_sockmap(sock_map, s1, s2); in test_reuseport_mixed_groups() 1406 xclose(s1); in test_reuseport_mixed_groups()
|
/tools/perf/ |
D | builtin-lock.c | 226 u64 s1 = one->wait_time_min; in SINGLE_KEY() local 228 if (s1 == ULLONG_MAX) in SINGLE_KEY() 229 s1 = 0; in SINGLE_KEY() 232 return s1 > s2; in SINGLE_KEY()
|
/tools/include/nolibc/ |
D | nolibc.h | 1093 int memcmp(const void *s1, const void *s2, size_t n) in memcmp() argument 1098 while (ofs < n && !(c1 = ((unsigned char *)s1)[ofs] - ((unsigned char *)s2)[ofs])) { in memcmp()
|
/tools/hv/ |
D | hv_kvp_daemon.c | 1083 static int kvp_write_file(FILE *f, char *s1, char *s2, char *s3) in kvp_write_file() argument 1087 ret = fprintf(f, "%s%s%s%s\n", s1, s2, "=", s3); in kvp_write_file()
|