[commit: nofib] master: Fix parsing cachegrind output. (6dc2b46)

git at git.haskell.org git at git.haskell.org
Sat Aug 13 18:13:59 UTC 2016


Repository : ssh://git@git.haskell.org/nofib

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/6dc2b467c71cf7c7e8f99ba4e60ca4b32a90236a/nofib

>---------------------------------------------------------------

commit 6dc2b467c71cf7c7e8f99ba4e60ca4b32a90236a
Author: Peter Trommler <ptrommler at acm.org>
Date:   Sat Aug 13 13:17:09 2016 +0200

    Fix parsing cachegrind output.
    
    On architectures with more than two levels of cache cachegrind
    reports the last level data cache miss rate as `LLd` and not `L2d`.
    This changes the regular expression to work in both cases.


>---------------------------------------------------------------

6dc2b467c71cf7c7e8f99ba4e60ca4b32a90236a
 runstdtest/runstdtest.prl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/runstdtest/runstdtest.prl b/runstdtest/runstdtest.prl
index 10a419b..538dfa9 100644
--- a/runstdtest/runstdtest.prl
+++ b/runstdtest/runstdtest.prl
@@ -598,7 +598,7 @@ sub process_cachegrind_files {
 	   $TotWrites =~ s/,//g;
 	};
 
-	/^==\d+==\s+L2d\s+misses:\s+([0-9,]+)/ && do {
+	/^==\d+==\s+L2|Ld\s+misses:\s+([0-9,]+)/ && do {
 	   $TotMisses = $1;
 	   $TotMisses =~ s/,//g;
 	};



More information about the ghc-commits mailing list