diff options
| author | Jiri Olsa <[email protected]> | 2015-05-15 17:54:28 +0200 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-05-15 17:02:21 -0300 |
| commit | 2f15bd8c6c6e80f15c899ea84b53fa607a2f08b2 (patch) | |
| tree | 43d894077cc5e1eb460ce24d528a1c36e9795d57 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | c1b9034db7c85428f96db4ecf77abbf02d96de71 (diff) | |
perf tools: Fix "Command" sort_entry's cmp and collapse function
Currently the se_cmp and se_collapse use pointer comparison,
which is ok for for testing equality of strings. It's not ok
as comparing function for rbtree insertion, because it gives
different results based on current pointer values.
We saw test 32 (hists cumulation test) failing based on different
environment setup. Having all sort functions straightened fix the
test for us.
Reported-by: Jan Stancek <[email protected]>
Signed-off-by: Jiri Olsa <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jan Stancek <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions