Home
last modified time | relevance | path

Searched refs:right (Results 1 – 25 of 43) sorted by relevance

12

/tools/perf/util/
Dsort.c109 sort__thread_cmp(struct hist_entry *left, struct hist_entry *right) in sort__thread_cmp() argument
111 return thread__tid(right->thread) - thread__tid(left->thread); in sort__thread_cmp()
145 sort__simd_cmp(struct hist_entry *left, struct hist_entry *right) in sort__simd_cmp() argument
147 if (left->simd_flags.arch != right->simd_flags.arch) in sort__simd_cmp()
148 return (int64_t) left->simd_flags.arch - right->simd_flags.arch; in sort__simd_cmp()
150 return (int64_t) left->simd_flags.pred - right->simd_flags.pred; in sort__simd_cmp()
196 sort__comm_cmp(struct hist_entry *left, struct hist_entry *right) in sort__comm_cmp() argument
198 return strcmp(comm__str(right->comm), comm__str(left->comm)); in sort__comm_cmp()
202 sort__comm_collapse(struct hist_entry *left, struct hist_entry *right) in sort__comm_collapse() argument
204 return strcmp(comm__str(right->comm), comm__str(left->comm)); in sort__comm_collapse()
[all …]
Dstrfilter.c181 struct strfilter_node *right, *root; in strfilter__append() local
187 right = strfilter_node__new(rules, &ep); in strfilter__append()
188 if (!right || *ep != '\0') { in strfilter__append()
193 root = strfilter_node__alloc(_or ? OP_or : OP_and, filter->root, right); in strfilter__append()
203 strfilter_node__delete(right); in strfilter__append()
Dblock-info.h65 int64_t __block_info__cmp(struct hist_entry *left, struct hist_entry *right);
68 struct hist_entry *left, struct hist_entry *right);
Dblock-info.c68 int64_t __block_info__cmp(struct hist_entry *left, struct hist_entry *right) in __block_info__cmp() argument
71 struct block_info *bi_r = right->block_info; in __block_info__cmp()
94 struct hist_entry *left, struct hist_entry *right) in block_info__cmp() argument
96 return __block_info__cmp(left, right); in block_info__cmp()
211 struct hist_entry *right) in block_total_cycles_pct_sort() argument
215 struct block_info *bi_r = right->block_info; in block_total_cycles_pct_sort()
Dsort.h327 sort__iaddr_cmp(struct hist_entry *left, struct hist_entry *right);
329 sort__daddr_cmp(struct hist_entry *left, struct hist_entry *right);
331 sort__dcacheline_cmp(struct hist_entry *left, struct hist_entry *right);
Dblock-range.c60 static inline void rb_link_right_of_node(struct rb_node *right, struct rb_node *node) in rb_link_right_of_node() argument
67 rb_link_node(right, node, p); in rb_link_right_of_node()
Dmetricgroup.c1145 const struct metric *right = container_of(r, struct metric, nd); in metric_list_cmp() local
1155 right_count = hashmap__size(right->pctx->ids); in metric_list_cmp()
1157 if (!expr__get_id(right->pctx, perf_tool_event__to_str(i), &data)) in metric_list_cmp()
1174 const struct metric *right = container_of(r, struct metric, nd); in default_metricgroup_cmp() local
1175 int diff = strcmp(right->default_metricgroup_name, left->default_metricgroup_name); in default_metricgroup_cmp()
1180 return strcmp(right->metric_name, left->metric_name); in default_metricgroup_cmp()
Dhist.h179 int64_t hist_entry__cmp(struct hist_entry *left, struct hist_entry *right);
180 int64_t hist_entry__collapse(struct hist_entry *left, struct hist_entry *right);
Dcallchain.c676 const char *right) in match_chain_strings() argument
681 if (left && right) in match_chain_strings()
682 cmp = strcmp(left, right); in match_chain_strings()
683 else if (!left && right) in match_chain_strings()
685 else if (left && !right) in match_chain_strings()
Dhist.c1101 struct hist_entry *right) in hist_entry__fast__sym_diff() argument
1104 struct symbol *sym_r = right->ms.sym; in hist_entry__fast__sym_diff()
1107 return left->ip != right->ip; in hist_entry__fast__sym_diff()
1276 hist_entry__cmp(struct hist_entry *left, struct hist_entry *right) in hist_entry__cmp() argument
1287 cmp = fmt->cmp(fmt, left, right); in hist_entry__cmp()
1296 hist_entry__collapse(struct hist_entry *left, struct hist_entry *right) in hist_entry__collapse() argument
1307 cmp = fmt->collapse(fmt, left, right); in hist_entry__collapse()
/tools/testing/selftests/kvm/lib/
Dsparsebit.c171 struct node *right; member
227 if (nodep->right) { in node_next()
228 for (nodep = nodep->right; nodep->left; nodep = nodep->left) in node_next()
237 while (nodep->parent && nodep == nodep->parent->right) in node_next()
256 for (nodep = nodep->left; nodep->right; nodep = nodep->right) in node_prev()
297 if (subtree->right) { in node_copy_subtree()
298 root->right = node_copy_subtree(subtree->right); in node_copy_subtree()
299 root->right->parent = root; in node_copy_subtree()
316 nodep = nodep->idx > idx ? nodep->left : nodep->right) { in node_find()
367 if (!parentp->right) { in node_add()
[all …]
/tools/perf/
Dbuiltin-diff.c564 struct hist_entry *right) in block_cycles_diff_cmp() argument
567 bool pairs_right = hist_entry__has_pairs(right); in block_cycles_diff_cmp()
574 r = llabs(right->diff.cycles); in block_cycles_diff_cmp()
579 struct hist_entry *left, struct hist_entry *right) in block_sort() argument
581 return block_cycles_diff_cmp(right, left); in block_sort()
760 __hist_entry__cmp_compute(struct hist_entry *left, struct hist_entry *right, in __hist_entry__cmp_compute() argument
767 double r = right->diff.period_ratio_delta; in __hist_entry__cmp_compute()
774 double r = fabs(right->diff.period_ratio_delta); in __hist_entry__cmp_compute()
781 double r = right->diff.period_ratio; in __hist_entry__cmp_compute()
788 s64 r = right->diff.wdiff; in __hist_entry__cmp_compute()
[all …]
Dbuiltin-c2c.c519 struct hist_entry *left, struct hist_entry *right) in dcacheline_cmp() argument
521 return sort__dcacheline_cmp(left, right); in dcacheline_cmp()
577 struct hist_entry *left, struct hist_entry *right) in offset_cmp() argument
584 if (right->mem_info) in offset_cmp()
585 r = cl_offset(right->mem_info->daddr.addr, chk_double_cl); in offset_cmp()
606 struct hist_entry *left, struct hist_entry *right) in iaddr_cmp() argument
608 return sort__iaddr_cmp(left, right); in iaddr_cmp()
627 struct hist_entry *left, struct hist_entry *right) in tot_hitm_cmp() argument
635 c2c_right = container_of(right, struct c2c_hist_entry, he); in tot_hitm_cmp()
659 struct hist_entry *left, struct hist_entry *right) \
[all …]
Dbuiltin-kvm.c93 struct hist_entry *right);
107 struct hist_entry *right) in ev_name_cmp() argument
110 return -strcmp(left->kvm_info->name, right->kvm_info->name); in ev_name_cmp()
136 struct hist_entry *right) \
143 event_right = container_of(right, struct kvm_event, he); \
270 struct hist_entry *left, struct hist_entry *right) in ev_cmp_time_precent() argument
276 per_right = ev_percent_time(right); in ev_cmp_time_precent()
303 struct hist_entry *left, struct hist_entry *right) in ev_cmp_count_precent() argument
309 per_right = ev_percent_count(right); in ev_cmp_count_precent()
Dbuiltin-trace.c3704 char *right = tok + 1, *right_end; local
3706 if (*right == '=')
3707 ++right;
3709 while (isspace(*right))
3710 ++right;
3712 if (*right == '\0')
3724 right_end = right + 1;
3728 if (isalpha(*right)) {
3731 right_size = right_end - right;
3747 arg, (int)(right - tok), tok, right_size, right);
[all …]
/tools/testing/selftests/kvm/s390x/
Dsync_regs_test.c40 TEST_ASSERT(left->reg == right->reg, \
43 left->reg, right->reg)
46 TEST_ASSERT(left->reg == right->reg, \
49 left->reg, right->reg)
52 static void compare_regs(struct kvm_regs *left, struct kvm_sync_regs *right) in compare_regs() argument
60 static void compare_sregs(struct kvm_sregs *left, struct kvm_sync_regs *right) in compare_sregs() argument
/tools/include/linux/
Dinterval_tree_generic.h165 ITSTRUCT *right = rb_entry(rb, ITSTRUCT, ITRB); \
166 if (start <= right->ITSUBTREE) \
167 return ITPREFIX ## _subtree_search(right, \
/tools/testing/selftests/kvm/x86_64/
Dsync_regs_test.c44 static void compare_regs(struct kvm_regs *left, struct kvm_regs *right) in compare_regs() argument
47 TEST_ASSERT(left->reg == right->reg, \ in compare_regs()
50 left->reg, right->reg) in compare_regs()
72 static void compare_sregs(struct kvm_sregs *left, struct kvm_sregs *right) in compare_sregs() argument
77 struct kvm_vcpu_events *right) in compare_vcpu_events() argument
/tools/testing/selftests/hid/tests/
Dtest_mouse.py39 self.right = False
59 self.right = r
63 right = self.right
80 mouse.b2 = int(right)
144 left, right, middle = buttons
147 if right is None:
148 right = self.right
153 right = self.right
156 button_mask = sum(1 << i for i, b in enumerate([left, right, middle]) if b)
Dtest_gamepad.py125 r = uhdev.event(right=data)
Dtest_multitouch.py264 right=None, argument
273 if right is not None:
274 self.right_state = right
1011 r = uhdev.event(right=True)
1017 r = uhdev.event(right=False)
/tools/perf/tests/attr/
Dsystem-wide-dummy17 # Event will be enabled right away.
/tools/testing/selftests/exec/
Dexecveat.c119 static char *concat(const char *left, const char *right) in concat() argument
121 char *result = malloc(strlen(left) + strlen(right) + 1); in concat()
124 strcat(result, right); in concat()
/tools/perf/scripts/perl/Perf-Trace-Util/
DREADME37 module in the right place.
/tools/perf/Documentation/
Dperf-mem.txt19 right set of options to display a memory access profile. By default, loads

12