Home
last modified time | relevance | path

Searched refs:cmp (Results 1 – 25 of 34) sorted by relevance

12

/tools/perf/
Dbuiltin-kmem.c218 int cmp; in search_alloc_stat() local
222 cmp = sort_fn(&key, data); in search_alloc_stat()
223 if (cmp < 0) in search_alloc_stat()
225 else if (cmp > 0) in search_alloc_stat()
431 sort_fn_t cmp; member
446 s64 cmp; in __page_stat__findnew_page() local
451 cmp = data->page - pstat->page; in __page_stat__findnew_page()
452 if (cmp < 0) in __page_stat__findnew_page()
454 else if (cmp > 0) in __page_stat__findnew_page()
496 int cmp = 0; in __page_stat__findnew_alloc() local
[all …]
Dbuiltin-c2c.c404 int64_t (*cmp)(struct perf_hpp_fmt *fmt, member
1244 .cmp = dcacheline_cmp,
1252 .cmp = empty_cmp,
1260 .cmp = empty_cmp,
1270 .cmp = offset_cmp,
1278 .cmp = empty_cmp,
1286 .cmp = iaddr_cmp,
1294 .cmp = tot_hitm_cmp,
1302 .cmp = lcl_hitm_cmp,
1310 .cmp = rmt_hitm_cmp,
[all …]
Dbuiltin-sched.c911 sort_fn_t cmp; member
955 ret = sort->cmp(l, r); in thread_lat_cmp()
972 int cmp; in thread_atoms_search() local
976 cmp = thread_lat_cmp(sort_list, &key, atoms); in thread_atoms_search()
977 if (cmp > 0) in thread_atoms_search()
979 else if (cmp < 0) in thread_atoms_search()
998 int cmp; in __thread_latency_insert() local
1003 cmp = thread_lat_cmp(sort_list, data, this); in __thread_latency_insert()
1005 if (cmp > 0) in __thread_latency_insert()
1426 .cmp = avg_cmp, in sort_dimension__add()
[all …]
Dbuiltin-diff.c589 bh->block_fmt.cmp = block_info__cmp; in init_block_hist()
601 int64_t cmp; in get_block_pair() local
609 cmp = __block_info__cmp(he_pair, he); in get_block_pair()
610 if (!cmp) in get_block_pair()
1746 fmt->cmp = hist_entry__cmp_nop; in data__hpp_register()
1847 fmt->cmp = hist_entry__cmp_nop; in ui_init()
/tools/perf/util/
Dcomm.c66 int cmp; in __comm_str__findnew() local
77 cmp = strcmp(str, iter->str); in __comm_str__findnew()
78 if (!cmp && comm_str__get(iter)) in __comm_str__findnew()
81 if (cmp < 0) in __comm_str__findnew()
Dhist.c587 int64_t cmp; in hists__findnew_entry() local
604 cmp = hist_entry__cmp(he, entry); in hists__findnew_entry()
606 if (!cmp) { in hists__findnew_entry()
635 if (cmp < 0) in hists__findnew_entry()
1251 int64_t cmp = 0; in hist_entry__cmp() local
1258 cmp = fmt->cmp(fmt, left, right); in hist_entry__cmp()
1259 if (cmp) in hist_entry__cmp()
1263 return cmp; in hist_entry__cmp()
1271 int64_t cmp = 0; in hist_entry__collapse() local
1278 cmp = fmt->collapse(fmt, left, right); in hist_entry__collapse()
[all …]
Dblock-info.c72 int cmp; in __block_info__cmp() local
83 cmp = strcmp(bi_l->sym->name, bi_r->sym->name); in __block_info__cmp()
84 if (cmp) in __block_info__cmp()
85 return cmp; in __block_info__cmp()
354 fmt->cmp = block_info__cmp; in hpp_register()
Dcallchain.c670 int cmp; in match_chain_strings() local
673 cmp = strcmp(left, right); in match_chain_strings()
675 cmp = 1; in match_chain_strings()
677 cmp = -1; in match_chain_strings()
681 if (cmp != 0) in match_chain_strings()
682 ret = cmp < 0 ? MATCH_LT : MATCH_GT; in match_chain_strings()
922 enum match_result cmp = MATCH_ERROR; in append_chain() local
937 cmp = match_chain(node, cnode); in append_chain()
938 if (cmp != MATCH_EQ) in append_chain()
948 WARN_ONCE(cmp == MATCH_ERROR, "Chain comparison error\n"); in append_chain()
[all …]
Dsymbol.c486 int cmp; in symbols__find_by_name() local
489 cmp = symbol__match_symbol_name(s->sym.name, name, includes); in symbols__find_by_name()
491 if (cmp > 0) in symbols__find_by_name()
493 else if (cmp < 0) in symbols__find_by_name()
1008 int cmp; in find_module() local
1011 cmp = strcmp(name, m->name); in find_module()
1012 if (cmp < 0) in find_module()
1014 else if (cmp > 0) in find_module()
/tools/memory-model/scripts/
Dcmplitmushist.sh23 if cmp -s $T/oldout $T/newout && grep -q '^Observation' $1
34 if cmp -s $T/oldout $T/newout
48 if cmp -s $T/oldout $T/newout
/tools/testing/selftests/openat2/
Dhelpers.c74 bool cmp; in fdequal() local
86 cmp = !strcmp(fdpath, other); in fdequal()
91 return cmp; in fdequal()
/tools/testing/selftests/arm64/fp/
Dfpsimd-test.S137 cmp w0, #10
174 cmp x2, #0
247 cmp x1, #0
268 cmp w3, w4
377 cmp x19, #128
379 cmp x19, #2048
431 cmp x21, #NVR
442 cmp x21, #NVR
Dsve-test.S149 cmp w0, #10
190 cmp x2, #0
336 cmp x1, #0
360 cmp w3, w4
528 cmp x19, #128
530 cmp x19, #2048
576 cmp x0, x19
585 cmp x21, #NZR
598 cmp x21, #NZR + NPR
609 cmp x21, #NZR
[all …]
/tools/lib/subcmd/
Dhelp.c73 int cmp; in exclude_cmds() local
77 cmp = strcmp(cmds->names[ci]->name, excludes->names[ei]->name); in exclude_cmds()
78 if (cmp < 0) { in exclude_cmds()
80 } else if (cmp == 0) { in exclude_cmds()
83 } else if (cmp > 0) { in exclude_cmds()
/tools/bpf/resolve_btfids/
Dmain.c152 int cmp; in btf_id__find() local
156 cmp = strcmp(id->name, name); in btf_id__find()
157 if (cmp < 0) in btf_id__find()
159 else if (cmp > 0) in btf_id__find()
173 int cmp; in btf_id__add() local
178 cmp = strcmp(id->name, name); in btf_id__add()
179 if (cmp < 0) in btf_id__add()
181 else if (cmp > 0) in btf_id__add()
/tools/perf/ui/
Dhist.c190 int cmp, nr_members, ret, i; in __hpp__group_sort_idx() local
192 cmp = field_cmp(get_field(a), get_field(b)); in __hpp__group_sort_idx()
194 return cmp; in __hpp__group_sort_idx()
198 return cmp; in __hpp__group_sort_idx()
202 ret = cmp; in __hpp__group_sort_idx()
468 .cmp = hpp__nop_cmp, \
482 .cmp = hpp__nop_cmp, \
495 .cmp = hpp__nop_cmp, \
/tools/objtool/
Delf.c47 int (*cmp)(struct rb_node *, const struct rb_node *)) in rb_add()
54 if (cmp(node, parent) < 0) in rb_add()
65 int (*cmp)(const void *key, const struct rb_node *)) in rb_find_first()
71 int c = cmp(key, node); in rb_find_first()
85 int (*cmp)(const void *key, const struct rb_node *)) in rb_next_match()
88 if (node && cmp(key, node)) in rb_next_match()
93 #define rb_for_each(tree, node, key, cmp) \ argument
94 for ((node) = rb_find_first((tree), (key), (cmp)); \
95 (node); (node) = rb_next_match((node), (key), (cmp)))
/tools/lib/traceevent/
DMakefile168 if [ -r $@ ] && cmp -s $@ $@.tmp; then \
183 if [ -r $@ ] && cmp -s $@ $@.tmp; then \
/tools/testing/selftests/net/mptcp/
Dsimult_flows.sh191 cmp $sin $cout > /dev/null 2>&1
193 cmp $cin $sout > /dev/null 2>&1
/tools/arch/x86/lib/
Dmemcpy_64.S69 cmp %dil, %sil
/tools/lib/traceevent/plugins/
DMakefile162 if [ -r $@ ] && cmp -s $@ $@.tmp; then \
/tools/perf/tests/
Dswitch-tracking.c256 s64 cmp = nodea->event_time - nodeb->event_time; in compar() local
258 return cmp; in compar()
/tools/testing/ktest/
Dktest.pl830 my ($lval, $cmp, $rval) = @_;
840 if ($cmp eq "==") {
842 } elsif ($cmp eq "!=") {
844 } elsif ($cmp eq "=~") {
846 } elsif ($cmp eq "!~") {
850 my $statement = "$lval $cmp $rval";
/tools/testing/selftests/net/forwarding/
Dtc_actions.sh181 cmp -s $tmpfile $tmpfile1
/tools/testing/selftests/netfilter/
Dipvs.sh128 cmp "$infile" "$outfile" 2>/dev/null

12