Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264097
b: refs/heads/master
c: 6bb8f31
h: refs/heads/master
i:
  264095: 06b85ca
v: v3
  • Loading branch information
Anton Blanchard authored and Arnaldo Carvalho de Melo committed Sep 23, 2011
1 parent dfb0c40 commit 861cae3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6a0e55d85babfccfd976703852ec8bab388b3a10
refs/heads/master: 6bb8f311a870d6042e0310309eb3d607ae52fe3e
10 changes: 8 additions & 2 deletions trunk/tools/perf/util/sort.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,17 @@ sort__sym_cmp(struct hist_entry *left, struct hist_entry *right)
{
u64 ip_l, ip_r;

if (!left->ms.sym && !right->ms.sym)
return right->level - left->level;

if (!left->ms.sym || !right->ms.sym)
return cmp_null(left->ms.sym, right->ms.sym);

if (left->ms.sym == right->ms.sym)
return 0;

ip_l = left->ms.sym ? left->ms.sym->start : left->ip;
ip_r = right->ms.sym ? right->ms.sym->start : right->ip;
ip_l = left->ms.sym->start;
ip_r = right->ms.sym->start;

return (int64_t)(ip_r - ip_l);
}
Expand Down

0 comments on commit 861cae3

Please sign in to comment.