~linaro-toolchain-dev/cortex-strings/trunk

« back to all changes in this revision

Viewing changes to scripts/plot-top.py

  • Committer: Matthew Gretton-Dann
  • Author(s): Marcus Shawcroft
  • Date: 2013-01-16 20:55:59 UTC
  • mto: This revision was merged to the branch mainline in revision 99.
  • Revision ID: matthew.gretton-dann@linaro.org-20130116205559-7nye0l7d8fvzdye3
This patch fixes an issue in the AArch64 strnlen implementation which
occurs if  ULONG_MAX-15 <= n <= ULONG_MAX.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
        heights = []
28
28
 
29
29
        for function in functions:
30
 
            matches = [x for x in records if x.variant==variant and x.function==function and x.src_alignment==8]
 
30
            matches = [x for x in records if x.variant==variant and x.function==function and x.alignment==8]
31
31
 
32
32
            if matches:
33
 
                vals = [match.bytes*match.loops/match.elapsed/(1024*1024) for
34
 
                        match in matches]
35
 
                mean = sum(vals)/len(vals)
36
 
                heights.append(mean)
 
33
                match = matches[0]
 
34
                heights.append(match.bytes*match.loops/match.elapsed/(1024*1024))
37
35
            else:
38
36
                heights.append(0)
39
37