projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1902efe
)
perf tools: Compare hists comm by addresses
author
Frederic Weisbecker
<
[email protected]
>
Wed, 11 Sep 2013 15:18:09 +0000
(17:18 +0200)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Mon, 4 Nov 2013 15:14:59 +0000
(12:14 -0300)
Now that comm strings are allocated only once and refcounted to be shared
among threads, these can now be safely compared by addresses. This
should remove most hists collapses on post processing.
Signed-off-by: Frederic Weisbecker <
[email protected]
>
Tested-by: Jiri Olsa <
[email protected]
>
Cc: Jiri Olsa <
[email protected]
>
Cc: David Ahern <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Arnaldo Carvalho de Melo <
[email protected]
>
Cc: Stephane Eranian <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Namhyung Kim <
[email protected]
>
tools/perf/util/sort.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/sort.c
b/tools/perf/util/sort.c
index 835e8bdd869f9bed27e074ee3e770e8fe7e0444b..bf91d0e5c16e20fda56880629967038a41a29aea 100644
(file)
--- a/
tools/perf/util/sort.c
+++ b/
tools/perf/util/sort.c
@@
-80,7
+80,8
@@
struct sort_entry sort_thread = {
static int64_t
sort__comm_cmp(struct hist_entry *left, struct hist_entry *right)
{
- return right->thread->tid - left->thread->tid;
+ /* Compare the addr that should be unique among comm */
+ return thread__comm_str(right->thread) - thread__comm_str(left->thread);
}
static int64_t