Home
last modified time | relevance | path

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

/tools/testing/selftests/powerpc/stringloops/
Dmemcmp.c29 int test_memcmp(const void *s1, const void *s2, size_t n);
32 static void test_one(char *s1, char *s2, unsigned long max_offset, in test_one() argument
42 y = memcmp(s1+offset, s2+offset, size); in test_one()
43 x = test_memcmp(s1+offset, s2+offset, size); in test_one()
50 printf("%02x ", s1[i]); in test_one()
61 offset, size, s1, s2, vmx_count); in test_one()
71 char *s1; in testcase() local
79 s1 = memalign(128, alloc_size); in testcase()
80 if (!s1) { in testcase()
96 char *rand_s1 = s1; in testcase()
[all …]
/tools/testing/selftests/bpf/progs/
Dbtf_dump_test_case_ordering.c9 struct s1 {}; struct
22 struct s1 s1; member
27 struct s1 s1; member
/tools/perf/tests/
Dsample-parsing.c20 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()
102 for (i = 0; i < s1->branch_stack->nr; i++) in samples_same()
107 size_t sz = hweight_long(s1->user_regs.mask) * sizeof(u64); in samples_same()
111 if (s1->user_regs.abi && in samples_same()
112 (!s1->user_regs.regs || !s2->user_regs.regs || in samples_same()
[all …]
/tools/testing/selftests/powerpc/dscr/
Ddscr_default_test.c25 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/
Dproc.h22 static inline bool streq(const char *s1, const char *s2) in streq() argument
24 return strcmp(s1, s2) == 0; in streq()
/tools/perf/util/
Dstring.c201 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()
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()
Dstring2.h21 int strtailcmp(const char *s1, const char *s2);
Dcpumap.c137 int cpu, s1, s2; in cpu_map__build_map() local
145 s1 = f(cpus, cpu, data); in cpu_map__build_map()
147 if (s1 == c->map[s2]) in cpu_map__build_map()
151 c->map[c->nr] = s1; in cpu_map__build_map()
Dheader.h167 int strcmp_cpuid_str(const char *s1, const char *s2);
/tools/vm/
Dslabinfo.c1042 struct slabinfo *s1,*s2; in sort_slabs() local
1044 for (s1 = slabinfo; s1 < slabinfo + slabs; s1++) { in sort_slabs()
1045 for (s2 = s1 + 1; s2 < slabinfo + slabs; s2++) { in sort_slabs()
1049 if (slab_size(s1) == slab_size(s2)) in sort_slabs()
1050 result = strcasecmp(s1->name, s2->name); in sort_slabs()
1052 result = slab_size(s1) < slab_size(s2); in sort_slabs()
1054 if (slab_activity(s1) == slab_activity(s2)) in sort_slabs()
1055 result = strcasecmp(s1->name, s2->name); in sort_slabs()
1057 result = slab_activity(s1) < slab_activity(s2); in sort_slabs()
1059 if (slab_waste(s1) == slab_waste(s2)) in sort_slabs()
[all …]
/tools/testing/selftests/powerpc/alignment/
Dalignment_handler.c152 void dumpdata(char *s1, char *s2, int n, char *test_name) in dumpdata() argument
159 printf(" %02x", s1[i]); in dumpdata()
167 int test_memcmp(void *s1, void *s2, int n, int offset, char *test_name) in test_memcmp() argument
171 s1c = s1; in test_memcmp()
/tools/testing/selftests/bpf/
Dtest_sockmap.c62 int s1, s2, c1, c2, p1, p2; variable
140 else if (s == s1) in sock_to_string()
203 int *fds[4] = {&s1, &s2, &c1, &c2}; in sockmap_init_sockets()
205 s1 = s2 = p1 = p2 = c1 = c2 = 0; in sockmap_init_sockets()
241 err = bind(s1, (struct sockaddr *)&addr, sizeof(addr)); in sockmap_init_sockets()
256 err = listen(s1, 32); in sockmap_init_sockets()
287 p1 = accept(s1, NULL, NULL); in sockmap_init_sockets()
302 c1, s1, c2, s2); in sockmap_init_sockets()
1086 close(s1); in run_options()
/tools/perf/
Dbuiltin-lock.c226 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/hv/
Dhv_kvp_daemon.c1083 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()
/tools/include/nolibc/
Dnolibc.h2318 int memcmp(const void *s1, const void *s2, size_t n) in memcmp() argument
2323 while (ofs < n && !(c1 = ((unsigned char *)s1)[ofs] - ((unsigned char *)s2)[ofs])) { in memcmp()