|
From: Philippe W. <phi...@so...> - 2019-01-27 10:17:01
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=50f76c756a09b33c7d0cd7efbb8ad38cc903ab93 commit 50f76c756a09b33c7d0cd7efbb8ad38cc903ab93 Author: Philippe Waroquiers <phi...@sk...> Date: Sun Jan 27 11:15:30 2019 +0100 Fix callgrind_annotate non deterministic order for equal total Patch by Matthias Schwarzott Diff: --- NEWS | 1 + callgrind/callgrind_annotate.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index b69875e..95970ce 100644 --- a/NEWS +++ b/NEWS @@ -90,6 +90,7 @@ where XXXXXX is the bug number as listed below. 403552 s390x: wrong facility bit checked for vector facility n-i-bz add syswrap for PTRACE_GET|SET_THREAD_AREA on amd64. +n-i-bz Fix callgrind_annotate non deterministic order for equal total Release 3.14.0 (9 October 2018) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/callgrind/callgrind_annotate.in b/callgrind/callgrind_annotate.in index ebf81a0..1aa8e07 100644 --- a/callgrind/callgrind_annotate.in +++ b/callgrind/callgrind_annotate.in @@ -921,7 +921,7 @@ sub print_summary_and_fn_totals () # Sort function names into order dictated by --sort option. @fn_fullnames = sort { - mycmp($fn_totals{$a}, $fn_totals{$b}) + mycmp($fn_totals{$a}, $fn_totals{$b}) || $a cmp $b } @fn_fullnames; |