Skip to content

Commit

Permalink
report: Merge entries have same name
Browse files Browse the repository at this point in the history
Multiple entries can have same name because they might be from different
library (--nest-libcall), same binary but different session or C++ name
demangling.  It'd be better merging them and show as a single item.

Closes #154.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
  • Loading branch information
namhyung committed Sep 9, 2017
1 parent c531c95 commit 827f38d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd-report.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ static void insert_entry(struct rb_root *root, struct trace_entry *te, bool thre

if (thread)
cmp = te->pid - entry->pid;
else if (te->sym && entry->sym)
cmp = strcmp(te->sym->name, entry->sym->name);
else
cmp = te->addr - entry->addr;

Expand Down

0 comments on commit 827f38d

Please sign in to comment.