summaryrefslogtreecommitdiffstats
path: root/tools/perf/util
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util')
-rw-r--r--tools/perf/util/sort.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c
index 835e8bdd869f..bf91d0e5c16e 100644
--- a/tools/perf/util/sort.c
+++ b/tools/perf/util/sort.c
@@ -80,7 +80,8 @@ struct sort_entry sort_thread = {
80static int64_t 80static int64_t
81sort__comm_cmp(struct hist_entry *left, struct hist_entry *right) 81sort__comm_cmp(struct hist_entry *left, struct hist_entry *right)
82{ 82{
83 return right->thread->tid - left->thread->tid; 83 /* Compare the addr that should be unique among comm */
84 return thread__comm_str(right->thread) - thread__comm_str(left->thread);
84} 85}
85 86
86static int64_t 87static int64_t