commit | 9666d5292c79d4ff873f26e4827088402bb5867f | [log] [tgz] |
---|---|---|
author | Jiri Olsa <[email protected]> | Tue Nov 05 00:27:11 2019 +0100 |
committer | Greg Kroah-Hartman <[email protected]> | Tue Nov 12 19:15:43 2019 +0100 |
tree | d0e8f1469ed7e3d2ee4bb6af66b9be1295e55eb4 | |
parent | 1bb77722ad2a9ad419066c4a724b77d0ca59b9f4 [diff] |
perf tools: Fix time sorting commit 722ddfde366fd46205456a9c5ff9b3359dc9a75e upstream. The final sort might get confused when the comparison is done over bigger numbers than int like for -s time. Check the following report for longer workloads: $ perf report -s time -F time,overhead --stdio Fix hist_entry__sort() to properly return int64_t and not possible cut int. Fixes: 043ca389a318 ("perf tools: Use hpp formats to sort final output") Signed-off-by: Jiri Olsa <[email protected]> Reviewed-by: Andi Kleen <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Michael Petlan <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: [email protected] # v3.16+ Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>