diff options
Diffstat (limited to 'tools/perf')
| -rw-r--r-- | tools/perf/util/sort.c | 3 |
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 = { | |||
| 80 | static int64_t | 80 | static int64_t |
| 81 | sort__comm_cmp(struct hist_entry *left, struct hist_entry *right) | 81 | sort__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 | ||
| 86 | static int64_t | 87 | static int64_t |
