diff options
Diffstat (limited to 'recipes-kernel/cryptodev/sdk_patches/0074-make-default-output-tabular.patch')
-rw-r--r-- | recipes-kernel/cryptodev/sdk_patches/0074-make-default-output-tabular.patch | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/recipes-kernel/cryptodev/sdk_patches/0074-make-default-output-tabular.patch b/recipes-kernel/cryptodev/sdk_patches/0074-make-default-output-tabular.patch deleted file mode 100644 index 16eadacd..00000000 --- a/recipes-kernel/cryptodev/sdk_patches/0074-make-default-output-tabular.patch +++ /dev/null | |||
@@ -1,83 +0,0 @@ | |||
1 | From 826f2feb22f5391e985930af40782b2fb980e028 Mon Sep 17 00:00:00 2001 | ||
2 | From: Cristian Stoica <cristian.stoica@nxp.com> | ||
3 | Date: Thu, 27 Oct 2016 10:12:25 +0300 | ||
4 | Subject: [PATCH 074/104] make default output tabular | ||
5 | |||
6 | Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com> | ||
7 | --- | ||
8 | tests/async_speed_multi.sh | 33 +++++++++++++++++++++++---------- | ||
9 | 1 file changed, 23 insertions(+), 10 deletions(-) | ||
10 | |||
11 | diff --git a/tests/async_speed_multi.sh b/tests/async_speed_multi.sh | ||
12 | index 22a12cb..b509c25 100755 | ||
13 | --- a/tests/async_speed_multi.sh | ||
14 | +++ b/tests/async_speed_multi.sh | ||
15 | @@ -31,6 +31,7 @@ Usage: `basename $0` [OPTIONS] <alg_name> | ||
16 | -m <threads> number of threads to run with (defaults to number of cores) | ||
17 | -t <secs> time to run each test (default 10 secs) | ||
18 | -n <bytes> size of the test buffer (default 256 bytes) | ||
19 | + -v make output more verbose (default tabular) | ||
20 | -h show this help | ||
21 | |||
22 | alg_name: null, aes-128-cbc, aes-256-xts, sha1, sha256, crc32c | ||
23 | @@ -57,9 +58,12 @@ function run_parallel | ||
24 | OPTIONS="-t $tvalue -n $nvalue -m" | ||
25 | CMD="async_speed $OPTIONS $alg_name" | ||
26 | |||
27 | - echo | ||
28 | - echo "Running $tvalue seconds $mvalue threads in parallel:" | ||
29 | - echo " $CMD" | ||
30 | + if [ ! -z "$vvalue" ] | ||
31 | + then | ||
32 | + echo | ||
33 | + echo "Running $tvalue seconds $mvalue threads in parallel:" | ||
34 | + echo " $CMD" | ||
35 | + fi | ||
36 | |||
37 | (sleep 1; S_TIME_FORMAT=ISO mpstat 1 $(($tvalue-2))) &> $MPSTAT_OUT & | ||
38 | MPSTAT_PID=$! | ||
39 | @@ -89,12 +93,20 @@ function run_parallel | ||
40 | avg_speed=$(echo "scale=2; $total_data / $runtime / 1000000000" | bc -l) | ||
41 | cpu_idle=$(get_cpu_idle) | ||
42 | |||
43 | - echo | ||
44 | - echo "buffer size : $nvalue" | ||
45 | - echo "running time : $runtime" | ||
46 | - echo "avg_speed : $avg_speed GB/s" | ||
47 | - echo "all_cpu idle : $cpu_idle %" | ||
48 | - echo | ||
49 | + if [ ! -z "$vvalue" ] | ||
50 | + then | ||
51 | + echo | ||
52 | + echo "buffer size : $nvalue" | ||
53 | + echo "running time : $runtime" | ||
54 | + echo "avg_speed : $avg_speed GB/s" | ||
55 | + echo "all_cpu idle : $cpu_idle %" | ||
56 | + echo | ||
57 | + else | ||
58 | + echo -e "algorithm\t""threads\t""runtime\t"\ | ||
59 | + "buf_size\t""GB/s\t""%cpu_idle" | ||
60 | + echo -e "${alg_name}\t${mvalue}\t${runtime}\t"\ | ||
61 | + "${nvalue}\t${avg_speed}\t${cpu_idle}" | ||
62 | + fi | ||
63 | } | ||
64 | |||
65 | function control_c | ||
66 | @@ -110,12 +122,13 @@ function main | ||
67 | rm -f ${OUT_BASENAME}_* | ||
68 | rm -f ${MPSTAT_OUT} | ||
69 | |||
70 | - while getopts hm:t:n: option | ||
71 | + while getopts vhm:t:n: option | ||
72 | do | ||
73 | case "$option" in | ||
74 | m) mvalue="$OPTARG";; | ||
75 | t) tvalue="$OPTARG";; | ||
76 | n) nvalue="$OPTARG";; | ||
77 | + v) vvalue="verbose";; | ||
78 | *) usage $0; exit 1;; | ||
79 | esac | ||
80 | done | ||
81 | -- | ||
82 | 2.10.2 | ||
83 | |||