summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/cryptodev/sdk_patches/0089-add-async-option-to-run_crypto_tests.sh.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/cryptodev/sdk_patches/0089-add-async-option-to-run_crypto_tests.sh.patch')
-rw-r--r--recipes-kernel/cryptodev/sdk_patches/0089-add-async-option-to-run_crypto_tests.sh.patch62
1 files changed, 0 insertions, 62 deletions
diff --git a/recipes-kernel/cryptodev/sdk_patches/0089-add-async-option-to-run_crypto_tests.sh.patch b/recipes-kernel/cryptodev/sdk_patches/0089-add-async-option-to-run_crypto_tests.sh.patch
deleted file mode 100644
index 50799f8d..00000000
--- a/recipes-kernel/cryptodev/sdk_patches/0089-add-async-option-to-run_crypto_tests.sh.patch
+++ /dev/null
@@ -1,62 +0,0 @@
1From bccc3add64bfd4a048bf7e5a2935b2fc719d8e13 Mon Sep 17 00:00:00 2001
2From: Cristian Stoica <cristian.stoica@nxp.com>
3Date: Tue, 1 Nov 2016 13:28:40 +0200
4Subject: [PATCH 089/104] add -async option to run_crypto_tests.sh
5
6Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com>
7---
8 tests/run_crypto_tests.sh | 31 ++++++++++++++++++++++++++++++-
9 1 file changed, 30 insertions(+), 1 deletion(-)
10
11diff --git a/tests/run_crypto_tests.sh b/tests/run_crypto_tests.sh
12index e128637..321b013 100644
13--- a/tests/run_crypto_tests.sh
14+++ b/tests/run_crypto_tests.sh
15@@ -4,6 +4,31 @@
16 BUF_SIZE="8192 16384 65536 131072 262144"
17 THREAD_CNT="1 8 12"
18 ALG_NAMES="aes-128-cbc aes-256-xts sha1 sha256 crc32c"
19+TIME=10
20+
21+############################
22+
23+function usage
24+{
25+cat << EOF
26+Usage: `basename $0` [OPTIONS]
27+
28+ -a run async version of the benchmark (default sync)
29+ -h show this help
30+
31+Run in sequence benchmarks for several crypto algorithms:
32+$ALG_NAMES
33+EOF
34+}
35+
36+while getopts ah option
37+do
38+ case "$option" in
39+ a) aflag="-a";;
40+ *) usage $0; exit 1;;
41+ esac
42+done
43+
44
45 #restool dpseci create --num-queues=8 --priorities=1,2,3,4,5,6,7,8
46 #restool dprc assign dprc.1 --object=dpseci.0 --plugged=1
47@@ -16,7 +41,11 @@ do
48 do
49 for bsize in ${BUF_SIZE}
50 do
51- speed_multi.sh -t 10 -n $bsize -m ${multi} ${alg_name} |
52+ speed_multi.sh -t ${TIME}\
53+ -n ${bsize}\
54+ -m ${multi}\
55+ ${aflag}\
56+ ${alg_name} |
57 tail -n 1
58 done
59 done
60--
612.10.2
62