diff options
Diffstat (limited to 'meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/update-results-script.patch')
-rw-r--r-- | meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/update-results-script.patch | 84 |
1 files changed, 47 insertions, 37 deletions
diff --git a/meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/update-results-script.patch b/meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/update-results-script.patch index 894f146d42..31c4aecbbe 100644 --- a/meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/update-results-script.patch +++ b/meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/update-results-script.patch | |||
@@ -1,45 +1,24 @@ | |||
1 | From 4955021bc283be404df62b97b86af3943efd29de Mon Sep 17 00:00:00 2001 | ||
2 | From: Noor Ahsan <noor_ahsan@mentor.com> | ||
3 | Date: Mon, 29 Aug 2011 16:17:51 +0000 | ||
4 | Subject: [PATCH] lmbench: Add version 3.0-a9 (initial recipe) | ||
5 | |||
1 | Now that we have our binaries in /usr/bin rather than the normal | 6 | Now that we have our binaries in /usr/bin rather than the normal |
2 | lmbench hierarchy we need to update the scripts as well to behave well here. | 7 | lmbench hierarchy we need to update the scripts as well to behave well here. |
3 | 8 | ||
4 | Upstream-Status: Inappropriate [This is related to the OE-specific behavior | 9 | Upstream-Status: Inappropriate [This is related to the OE-specific behavior |
5 | of installing into /usr/bin, etc, rather than dumping everything into | 10 | of installing into /usr/bin, etc, rather than dumping everything into |
6 | /usr/share/lmbench or similar] | 11 | /usr/share/lmbench or similar] |
7 | 12 | ||
8 | Index: lmbench-3.0-a9/scripts/results | 13 | --- |
9 | =================================================================== | 14 | scripts/config-run | 40 ++++++++++++++++++++-------------------- |
10 | --- lmbench-3.0-a9.orig/scripts/results | 15 | scripts/results | 8 +++----- |
11 | +++ lmbench-3.0-a9/scripts/results | 16 | 2 files changed, 23 insertions(+), 25 deletions(-) |
12 | @@ -8,11 +8,11 @@ RESULTS=results/$OS | 17 | |
13 | BASE=../$RESULTS/`uname -n` | 18 | diff --git a/scripts/config-run b/scripts/config-run |
14 | EXT=0 | 19 | index a2d5ba4..918cbdf 100755 |
15 | 20 | --- a/scripts/config-run | |
16 | -if [ ! -f "../bin/$OS/$CONFIG" ] | 21 | +++ b/scripts/config-run |
17 | +if [ ! -f "$CONFIG" ] | ||
18 | then echo "No config file?" | ||
19 | exit 1 | ||
20 | fi | ||
21 | -. ../bin/$OS/$CONFIG | ||
22 | +. $CONFIG | ||
23 | |||
24 | if [ ! -d ../$RESULTS ] | ||
25 | then mkdir -p ../$RESULTS | ||
26 | @@ -23,11 +23,9 @@ do EXT=`expr $EXT + 1` | ||
27 | RESULTS=$BASE.$EXT | ||
28 | done | ||
29 | |||
30 | -cd ../bin/$OS | ||
31 | -PATH=.:${PATH}; export PATH | ||
32 | export SYNC_MAX | ||
33 | export OUTPUT | ||
34 | -lmbench $CONFIG 2>../${RESULTS} | ||
35 | +lmbench $CONFIG 2>${RESULTS} | ||
36 | |||
37 | if [ X$MAIL = Xyes ] | ||
38 | then echo Mailing results | ||
39 | Index: lmbench-3.0-a9/scripts/config-run | ||
40 | =================================================================== | ||
41 | --- lmbench-3.0-a9.orig/scripts/config-run | ||
42 | +++ lmbench-3.0-a9/scripts/config-run | ||
43 | @@ -132,20 +132,20 @@ export LMBENCH_SCHED | 22 | @@ -132,20 +132,20 @@ export LMBENCH_SCHED |
44 | ############################################################################ | 23 | ############################################################################ |
45 | echo $L; echo ""; | 24 | echo $L; echo ""; |
@@ -89,7 +68,7 @@ Index: lmbench-3.0-a9/scripts/config-run | |||
89 | if [ `expr $SYNC_MAX \* $MB` -gt `expr $TOTAL_MEM` ] | 68 | if [ `expr $SYNC_MAX \* $MB` -gt `expr $TOTAL_MEM` ] |
90 | then | 69 | then |
91 | MB=`expr $TOTAL_MEM / $SYNC_MAX` | 70 | MB=`expr $TOTAL_MEM / $SYNC_MAX` |
92 | @@ -223,8 +223,8 @@ then echo Warning: you have only ${MB}MB | 71 | @@ -223,8 +223,8 @@ then echo Warning: you have only ${MB}MB available memory. |
93 | fi | 72 | fi |
94 | 73 | ||
95 | echo "Hang on, we are calculating your cache line size." | 74 | echo "Hang on, we are calculating your cache line size." |
@@ -158,3 +137,34 @@ Index: lmbench-3.0-a9/scripts/config-run | |||
158 | echo DISKS=\"$DISKS\" > $C | 137 | echo DISKS=\"$DISKS\" > $C |
159 | echo DISK_DESC=\"$DISK_DESC\" >> $C | 138 | echo DISK_DESC=\"$DISK_DESC\" >> $C |
160 | echo OUTPUT=$OUTPUT >> $C | 139 | echo OUTPUT=$OUTPUT >> $C |
140 | diff --git a/scripts/results b/scripts/results | ||
141 | index cd07c15..d5aa558 100755 | ||
142 | --- a/scripts/results | ||
143 | +++ b/scripts/results | ||
144 | @@ -8,11 +8,11 @@ RESULTS=results/$OS | ||
145 | BASE=../$RESULTS/`uname -n` | ||
146 | EXT=0 | ||
147 | |||
148 | -if [ ! -f "../bin/$OS/$CONFIG" ] | ||
149 | +if [ ! -f "$CONFIG" ] | ||
150 | then echo "No config file?" | ||
151 | exit 1 | ||
152 | fi | ||
153 | -. ../bin/$OS/$CONFIG | ||
154 | +. $CONFIG | ||
155 | |||
156 | if [ ! -d ../$RESULTS ] | ||
157 | then mkdir -p ../$RESULTS | ||
158 | @@ -23,11 +23,9 @@ do EXT=`expr $EXT + 1` | ||
159 | RESULTS=$BASE.$EXT | ||
160 | done | ||
161 | |||
162 | -cd ../bin/$OS | ||
163 | -PATH=.:${PATH}; export PATH | ||
164 | export SYNC_MAX | ||
165 | export OUTPUT | ||
166 | -lmbench $CONFIG 2>../${RESULTS} | ||
167 | +lmbench $CONFIG 2>${RESULTS} | ||
168 | |||
169 | if [ X$MAIL = Xyes ] | ||
170 | then echo Mailing results | ||