diff options
Diffstat (limited to 'scripts/contrib/bb-perf/bb-matrix.sh')
-rwxr-xr-x | scripts/contrib/bb-perf/bb-matrix.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/contrib/bb-perf/bb-matrix.sh b/scripts/contrib/bb-perf/bb-matrix.sh index b9edd5ff08..37721fe268 100755 --- a/scripts/contrib/bb-perf/bb-matrix.sh +++ b/scripts/contrib/bb-perf/bb-matrix.sh | |||
@@ -33,6 +33,8 @@ | |||
33 | # | 33 | # |
34 | 34 | ||
35 | # The following ranges are appropriate for a 4 core system with 8 logical units | 35 | # The following ranges are appropriate for a 4 core system with 8 logical units |
36 | # Use leading 0s to ensure all digits are the same string length, this results | ||
37 | # in nice log file names and columnar dat files. | ||
36 | BB_RANGE="04 05 06 07 08 09 10 11 12 13 14 15 16" | 38 | BB_RANGE="04 05 06 07 08 09 10 11 12 13 14 15 16" |
37 | PM_RANGE="04 05 06 07 08 09 10 11 12 13 14 15 16" | 39 | PM_RANGE="04 05 06 07 08 09 10 11 12 13 14 15 16" |
38 | 40 | ||
@@ -62,10 +64,11 @@ for BB in $BB_RANGE; do | |||
62 | echo "BB=$BB PM=$PM Logging to $BB_LOG" | 64 | echo "BB=$BB PM=$PM Logging to $BB_LOG" |
63 | 65 | ||
64 | # Export the variables under test and run the bitbake command | 66 | # Export the variables under test and run the bitbake command |
67 | # Strip any leading zeroes before passing to bitbake | ||
65 | export BB_NUMBER_THREADS=$(echo $BB | sed 's/^0*//') | 68 | export BB_NUMBER_THREADS=$(echo $BB | sed 's/^0*//') |
66 | export PARALLEL_MAKE="-j $(echo $PM | sed 's/^0*//')" | 69 | export PARALLEL_MAKE="-j $(echo $PM | sed 's/^0*//')" |
67 | /usr/bin/time -f "$BB $PM $TIME_STR" -a -o $RUNTIME_LOG $BB_CMD &> $BB_LOG | 70 | /usr/bin/time -f "$BB $PM $TIME_STR" -a -o $RUNTIME_LOG $BB_CMD &> $BB_LOG |
68 | 71 | ||
69 | echo " $(tail -n1 $RUNTIME_LOG)" | 72 | echo " $(tail -n1 $RUNTIME_LOG)" |
70 | echo -n " Cleaning up..." | 73 | echo -n " Cleaning up..." |
71 | mv tmp/buildstats $RUNDIR/$BB-$PM-buildstats | 74 | mv tmp/buildstats $RUNDIR/$BB-$PM-buildstats |