From 90dc44c8246f2a580fe4a41ce28c201e52307500 Mon Sep 17 00:00:00 2001 From: Darren Hart Date: Fri, 18 Jan 2013 23:13:52 +0000 Subject: bb-matrix: Fix min and max calculations The BB and PM ranges were originally intended to use leading 0s to ensure all the values were the same string length, making for nice log filenames and columnar dat files. However, not everyone will do this - especially if it isn't documented. Document the intent. Make the generation and parsing of dat files robust to either method. Signed-off-by: Darren Hart Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- scripts/contrib/bb-perf/bb-matrix.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/contrib/bb-perf/bb-matrix.sh') 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 @@ # # The following ranges are appropriate for a 4 core system with 8 logical units +# Use leading 0s to ensure all digits are the same string length, this results +# in nice log file names and columnar dat files. BB_RANGE="04 05 06 07 08 09 10 11 12 13 14 15 16" PM_RANGE="04 05 06 07 08 09 10 11 12 13 14 15 16" @@ -62,10 +64,11 @@ for BB in $BB_RANGE; do echo "BB=$BB PM=$PM Logging to $BB_LOG" # Export the variables under test and run the bitbake command + # Strip any leading zeroes before passing to bitbake export BB_NUMBER_THREADS=$(echo $BB | sed 's/^0*//') export PARALLEL_MAKE="-j $(echo $PM | sed 's/^0*//')" /usr/bin/time -f "$BB $PM $TIME_STR" -a -o $RUNTIME_LOG $BB_CMD &> $BB_LOG - + echo " $(tail -n1 $RUNTIME_LOG)" echo -n " Cleaning up..." mv tmp/buildstats $RUNDIR/$BB-$PM-buildstats -- cgit v1.2.3