| /tools/lib/ |
| D | list_sort.c | 15 static struct list_head *merge(void *priv, list_cmp_func_t cmp, in merge() argument 22 if (cmp(priv, a, b) <= 0) { in merge() 51 static void merge_final(void *priv, list_cmp_func_t cmp, struct list_head *head, in merge_final() argument 58 if (cmp(priv, a, b) <= 0) { in merge_final() 174 void list_sort(void *priv, struct list_head *head, list_cmp_func_t cmp) in list_sort() argument 214 a = merge(priv, cmp, b, a); in list_sort() 236 list = merge(priv, cmp, pending, list); in list_sort() 240 merge_final(priv, cmp, head, pending, list); in list_sort()
|
| /tools/include/linux/ |
| D | rbtree.h | 235 int (*cmp)(struct rb_node *, const struct rb_node *)) in rb_find_add() 243 c = cmp(node, parent); in rb_find_add() 268 int (*cmp)(const void *key, const struct rb_node *)) in rb_find() 273 int c = cmp(key, node); in rb_find() 296 int (*cmp)(const void *key, const struct rb_node *)) in rb_find_first() 302 int c = cmp(key, node); in rb_find_first() 326 int (*cmp)(const void *key, const struct rb_node *)) in rb_next_match() 329 if (node && cmp(key, node)) in rb_next_match() 341 #define rb_for_each(node, key, tree, cmp) \ argument 342 for ((node) = rb_find_first((key), (tree), (cmp)); \ [all …]
|
| D | list_sort.h | 13 void list_sort(void *priv, struct list_head *head, list_cmp_func_t cmp);
|
| /tools/testing/selftests/kvm/riscv/ |
| D | arch_timer.c | 20 uint64_t xcnt, xcnt_diff_us, cmp; in guest_irq_handler() local 28 cmp = timer_get_cmp(); in guest_irq_handler() 34 __GUEST_ASSERT(xcnt >= cmp, in guest_irq_handler() 36 xcnt, cmp, xcnt_diff_us); in guest_irq_handler()
|
| /tools/perf/ |
| D | builtin-kmem.c | 231 int cmp; in search_alloc_stat() local 235 cmp = sort_fn(&key, data); in search_alloc_stat() 236 if (cmp < 0) in search_alloc_stat() 238 else if (cmp > 0) in search_alloc_stat() 454 sort_fn_t cmp; member 469 s64 cmp; in __page_stat__findnew_page() local 474 cmp = data->page - pstat->page; in __page_stat__findnew_page() 475 if (cmp < 0) in __page_stat__findnew_page() 477 else if (cmp > 0) in __page_stat__findnew_page() 519 int cmp = 0; in __page_stat__findnew_alloc() local [all …]
|
| D | builtin-c2c.c | 415 int64_t (*cmp)(struct perf_hpp_fmt *fmt, member 1369 .cmp = dcacheline_cmp, 1377 .cmp = empty_cmp, 1385 .cmp = empty_cmp, 1395 .cmp = offset_cmp, 1403 .cmp = empty_cmp, 1411 .cmp = iaddr_cmp, 1419 .cmp = tot_hitm_cmp, 1427 .cmp = lcl_hitm_cmp, 1435 .cmp = rmt_hitm_cmp, [all …]
|
| /tools/testing/selftests/bpf/prog_tests/ |
| D | test_strncmp.c | 8 int cmp; in trigger_strncmp() local 12 cmp = skel->bss->cmp_ret; in trigger_strncmp() 13 if (cmp > 0) in trigger_strncmp() 15 if (cmp < 0) in trigger_strncmp()
|
| /tools/testing/selftests/nolibc/ |
| D | nolibc-test.c | 421 #define EXPECT_PTREQ(cond, expr, cmp) \ argument 422 do { if (!(cond)) result(llen, SKIPPED); else ret += expect_ptreq(expr, llen, cmp); } while (0) 425 int expect_ptreq(const void *expr, int llen, const void *cmp) in expect_ptreq() argument 430 if (expr != cmp) { in expect_ptreq() 439 #define EXPECT_PTRNE(cond, expr, cmp) \ argument 440 do { if (!(cond)) result(llen, SKIPPED); else ret += expect_ptrne(expr, llen, cmp); } while (0) 443 int expect_ptrne(const void *expr, int llen, const void *cmp) in expect_ptrne() argument 448 if (expr == cmp) { in expect_ptrne() 457 #define EXPECT_PTRGE(cond, expr, cmp) \ argument 458 do { if (!(cond)) result(llen, SKIPPED); else ret += expect_ptrge(expr, llen, cmp); } while (0) [all …]
|
| /tools/testing/selftests/openat2/ |
| D | helpers.c | 74 bool cmp; in fdequal() local 86 cmp = !strcmp(fdpath, other); in fdequal() 91 return cmp; in fdequal()
|
| /tools/testing/selftests/arm64/fp/ |
| D | za-fork-asm.S | 40 cmp x1, #2 51 cmp x1, #MAGIC
|
| D | sve-test.S | 202 cmp w3, w4 413 cmp x19, #128 415 cmp x19, #2048 447 cmp x0, x19 456 cmp x21, #NZR 469 cmp x21, #NZR + NPR 479 cmp x1, #1 487 cmp x21, #NZR 493 cmp x21, #NZR + NPR
|
| D | za-test.S | 37 cmp x2, #0 115 cmp w3, w4 264 cmp x19, #128 266 cmp x19, #2048 293 cmp x0, x19 310 cmp x1, #2
|
| D | asm-utils.S | 105 cmp w0, #10 134 cmp x2, #0 163 cmp x1, #0
|
| D | fpsimd-test.S | 104 cmp w3, w4 245 cmp x19, #128 247 cmp x19, #2048 281 cmp x21, #NVR 292 cmp x21, #NVR
|
| /tools/memory-model/scripts/ |
| D | cmplitmushist.sh | 60 if cmp -s $T/oldout $T/newout && grep -q '^Observation' $1 71 if cmp -s $T/oldout $T/newout 85 if cmp -s $T/oldout $T/newout
|
| /tools/perf/util/ |
| D | hist.c | 606 int64_t cmp; in hists__findnew_entry() local 622 cmp = hist_entry__cmp(he, entry); in hists__findnew_entry() 623 if (!cmp) { in hists__findnew_entry() 653 if (cmp < 0) in hists__findnew_entry() 1297 int64_t cmp = 0; in hist_entry__cmp() local 1304 cmp = fmt->cmp(fmt, left, right); in hist_entry__cmp() 1305 if (cmp) in hist_entry__cmp() 1309 return cmp; in hist_entry__cmp() 1317 int64_t cmp = 0; in hist_entry__collapse() local 1324 cmp = fmt->collapse(fmt, left, right); in hist_entry__collapse() [all …]
|
| /tools/perf/pmu-events/ |
| D | empty-pmu-events.c | 338 int cmp, mid = (low + high) / 2; in pmu_events_table__find_event_pmu() local 354 cmp = strcasecmp(pe.name, name); in pmu_events_table__find_event_pmu() 355 if (cmp < 0) { in pmu_events_table__find_event_pmu() 359 if (cmp > 0) { in pmu_events_table__find_event_pmu() 643 int cmp = strcmp(mgroup, group); in describe_metricgroup() local 645 if (cmp == 0) { in describe_metricgroup() 647 } else if (cmp < 0) { in describe_metricgroup()
|
| /tools/lib/subcmd/ |
| D | help.c | 76 int cmp; in exclude_cmds() local 83 cmp = strcmp(cmds->names[ci]->name, excludes->names[ei]->name); in exclude_cmds() 84 if (cmp < 0) { in exclude_cmds() 92 } else if (cmp == 0) { in exclude_cmds() 96 } else if (cmp > 0) { in exclude_cmds()
|
| /tools/perf/check-header_ignore_hunks/lib/ |
| D | list_sort.c | 28 + cmp(priv, b, b);
|
| /tools/testing/selftests/bpf/ |
| D | veristat.c | 1147 int cmp = 0; in cmp_stat() local 1151 cmp = strcmp(s1->file_name, s2->file_name); in cmp_stat() 1154 cmp = strcmp(s1->prog_name, s2->prog_name); in cmp_stat() 1172 cmp = v1 < v2 ? -1 : 1; in cmp_stat() 1180 return asc ? cmp : -cmp; in cmp_stat() 1186 int i, cmp; in cmp_prog_stats() local 1189 cmp = cmp_stat(s1, s2, env.sort_spec.ids[i], in cmp_prog_stats() 1191 if (cmp != 0) in cmp_prog_stats() 1192 return cmp; in cmp_prog_stats() 1196 cmp = strcmp(s1->file_name, s2->file_name); in cmp_prog_stats() [all …]
|
| /tools/bpf/resolve_btfids/ |
| D | main.c | 181 int cmp; in btf_id__find() local 185 cmp = strcmp(id->name, name); in btf_id__find() 186 if (cmp < 0) in btf_id__find() 188 else if (cmp > 0) in btf_id__find() 202 int cmp; in btf_id__add() local 207 cmp = strcmp(id->name, name); in btf_id__add() 208 if (cmp < 0) in btf_id__add() 210 else if (cmp > 0) in btf_id__add()
|
| /tools/testing/selftests/net/af_unix/ |
| D | msg_oob.c | 254 int cmp; in __recvpair() local 256 cmp = strncmp(expected_buf, recv_buf[0], expected_len); in __recvpair() 257 if (cmp) { in __recvpair() 261 ASSERT_EQ(cmp, 0); in __recvpair() 264 cmp = strncmp(recv_buf[0], recv_buf[1], expected_len); in __recvpair() 265 if (cmp) { in __recvpair() 272 ASSERT_EQ(cmp, 0); in __recvpair()
|
| /tools/net/ynl/ |
| D | ynl-regen.sh | 33 $TOOL --cmp-out --mode ${params[2]} --${params[3]} \
|
| /tools/mm/ |
| D | page_owner_sort.c | 106 static void set_single_cmp(int (*cmp)(const void *, const void *), int sign); 208 int cmp = 0; in compare_sort_condition() local 211 if (cmp == 0) in compare_sort_condition() 212 cmp = sc.signs[i] * sc.cmps[i](p1, p2); in compare_sort_condition() 213 return cmp; in compare_sort_condition() 536 static void set_single_cmp(int (*cmp)(const void *, const void *), int sign) in set_single_cmp() 543 sc.cmps[0] = cmp; in set_single_cmp()
|
| /tools/perf/ui/ |
| D | hist.c | 197 int cmp, nr_members, ret, i; in __hpp__group_sort_idx() local 199 cmp = field_cmp(get_field(a), get_field(b)); in __hpp__group_sort_idx() 201 return cmp; in __hpp__group_sort_idx() 205 return cmp; in __hpp__group_sort_idx() 209 ret = cmp; in __hpp__group_sort_idx() 515 .cmp = hpp__nop_cmp, \ 529 .cmp = hpp__nop_cmp, \ 542 .cmp = hpp__nop_cmp, \
|