summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Ogden <benie.ogden@linaro.org>2014-06-20 20:39:00 +0100
committerBernard Ogden <benie.ogden@linaro.org>2014-06-20 21:20:43 +0100
commit740f6777e4e86bbb165faacf438733452f65749b (patch)
tree09fd382a14298b7e1e1dfec4208703244a2a55f9
parenta4f9bb3807d4878d7fedbe603f1f2b18909cf309 (diff)
Support forcing kernel flags
-rwxr-xr-xcortex-strings-bench.sh4
-rw-r--r--cortex-strings-bench.yaml3
2 files changed, 4 insertions, 3 deletions
diff --git a/cortex-strings-bench.sh b/cortex-strings-bench.sh
index 82558c6..45d46ad 100755
--- a/cortex-strings-bench.sh
+++ b/cortex-strings-bench.sh
@@ -26,10 +26,10 @@ fi
run "git clone -b bernie_benchmarking git://git.linaro.org/people/bernie.ogden/cbuild2"
run "git clone -b bench_all_variants git://git.linaro.org/people/bernie.ogden/cortex-strings.git"
run "git clone git://git.linaro.org/people/bernie.ogden/kernel_module"
-run "cd kernel_module && make ARCH=arm -C /usr/src/linux-headers-$(uname -r) SUBDIRS=\$PWD modules && insmod modex.ko"
+run "cd kernel_module && make ARCH=arm EXTRA_CFLAGS=$3 -C /usr/src/linux-headers-$(uname -r) SUBDIRS=\$PWD modules && insmod modex.ko"
run "mkdir cortex-strings-build"
run "cd cortex-strings && ./autogen.sh"
-run "cd cortex-strings-build && ../cortex-strings/configure && make -j -l $cores"
+run "cd cortex-strings-build && CFLAGS=$3 ../cortex-strings/configure && make -j -l $cores"
run "${topdir}/controlled_run.sh \"date && cat /dev/modex && cd ${topdir}/cortex-strings-build && python ../cortex-strings/scripts/bench.py -f $1 -v $2 && cat /dev/modex && date\" > controlled_stdout 2> controlled_stderr"
run "rmmod modex"
diff --git a/cortex-strings-bench.yaml b/cortex-strings-bench.yaml
index c2f8141..d1f9c30 100644
--- a/cortex-strings-bench.yaml
+++ b/cortex-strings-bench.yaml
@@ -7,6 +7,7 @@ metadata:
params:
CORTEX_STRINGS_LIBRARIES: all
CORTEX_STRINGS_FUNCTIONS: all
+ CORTEX_STRINGS_CFLAGS: "-g -O2"
install:
deps:
@@ -21,7 +22,7 @@ install:
- cpufrequtils
run:
steps:
- - ./cortex-strings-bench.sh "$CORTEX_STRINGS_FUNCTIONS" "$CORTEX_STRINGS_LIBRARIES"
+ - ./cortex-strings-bench.sh "$CORTEX_STRINGS_FUNCTIONS" "$CORTEX_STRINGS_LIBRARIES" "$KERNEL_EXTRA_CFLAGS"
- "lava-test-run-attach controlled_stdout text/plain"
- "lava-test-run-attach controlled_stderr text/plain"
- "lava-test-run-attach cortex-strings-build/cache.txt text/plain"