Fix parsing cachegrind output.
authorPeter Trommler <ptrommler@acm.org>
Sat, 13 Aug 2016 11:17:09 +0000 (13:17 +0200)
committerPeter Trommler <ptrommler@acm.org>
Sat, 13 Aug 2016 11:17:09 +0000 (13:17 +0200)
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.

runstdtest/runstdtest.prl

index 10a419b..538dfa9 100644 (file)
@@ -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;
        };