diff options
Diffstat (limited to 'scripts/contrib/bb-perf/buildstats-plot.sh')
-rwxr-xr-x | scripts/contrib/bb-perf/buildstats-plot.sh | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/scripts/contrib/bb-perf/buildstats-plot.sh b/scripts/contrib/bb-perf/buildstats-plot.sh index 320c4910a1..80fd30960c 100755 --- a/scripts/contrib/bb-perf/buildstats-plot.sh +++ b/scripts/contrib/bb-perf/buildstats-plot.sh | |||
@@ -72,40 +72,40 @@ EOM | |||
72 | 72 | ||
73 | # Parse and validate arguments | 73 | # Parse and validate arguments |
74 | while getopts "b:n:r:t:s:o:aSh" OPT; do | 74 | while getopts "b:n:r:t:s:o:aSh" OPT; do |
75 | case $OPT in | 75 | case $OPT in |
76 | b) | 76 | b) |
77 | BS_DIR="$OPTARG" | 77 | BS_DIR="$OPTARG" |
78 | ;; | 78 | ;; |
79 | n) | 79 | n) |
80 | N="$OPTARG" | 80 | N="$OPTARG" |
81 | ;; | 81 | ;; |
82 | r) | 82 | r) |
83 | RECIPE="-r $OPTARG" | 83 | RECIPE="-r $OPTARG" |
84 | ;; | 84 | ;; |
85 | t) | 85 | t) |
86 | TASKS="$OPTARG" | 86 | TASKS="$OPTARG" |
87 | ;; | 87 | ;; |
88 | s) | 88 | s) |
89 | STATS="$OPTARG" | 89 | STATS="$OPTARG" |
90 | ;; | 90 | ;; |
91 | a) | 91 | a) |
92 | ACCUMULATE="-a" | 92 | ACCUMULATE="-a" |
93 | ;; | 93 | ;; |
94 | S) | 94 | S) |
95 | SUM="y" | 95 | SUM="y" |
96 | ;; | 96 | ;; |
97 | o) | 97 | o) |
98 | OUTDATA_FILE="$OPTARG" | 98 | OUTDATA_FILE="$OPTARG" |
99 | ;; | 99 | ;; |
100 | h) | 100 | h) |
101 | usage | 101 | usage |
102 | exit 0 | 102 | exit 0 |
103 | ;; | 103 | ;; |
104 | *) | 104 | *) |
105 | usage | 105 | usage |
106 | exit 1 | 106 | exit 1 |
107 | ;; | 107 | ;; |
108 | esac | 108 | esac |
109 | done | 109 | done |
110 | 110 | ||
111 | # Get number of stats | 111 | # Get number of stats |
@@ -141,8 +141,8 @@ else | |||
141 | declare -a sumargs | 141 | declare -a sumargs |
142 | j=0 | 142 | j=0 |
143 | for i in `seq $nstats`; do | 143 | for i in `seq $nstats`; do |
144 | sumargs[j]=sum; j=$(( $j + 1 )) | 144 | sumargs[j]=sum; j=$(( $j + 1 )) |
145 | sumargs[j]=`expr 3 + $i - 1`; j=$(( $j + 1 )) | 145 | sumargs[j]=`expr 3 + $i - 1`; j=$(( $j + 1 )) |
146 | done | 146 | done |
147 | 147 | ||
148 | # Do the processing with datamash | 148 | # Do the processing with datamash |