diff options
author | Chunrong Guo <chunrong.guo@nxp.com> | 2017-07-28 15:44:09 +0800 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2017-08-07 11:42:29 -0300 |
commit | ece24e8f9a042561f188d8f09c60b146dd081c94 (patch) | |
tree | 1f9b832c30fa2740f16363187493814aca21a3c2 /recipes-kernel/cryptodev/sdk_patches/0059-fix-some-issues-with-parsing-mpstat-output.patch | |
parent | d586bfdde75ab6cae4f2dcdb63c068e07f4c188e (diff) | |
download | meta-freescale-ece24e8f9a042561f188d8f09c60b146dd081c94.tar.gz |
cryptodev-qoriq: update to v1.9
Signed-off-by: Chunrong Guo <B40290@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-kernel/cryptodev/sdk_patches/0059-fix-some-issues-with-parsing-mpstat-output.patch')
-rw-r--r-- | recipes-kernel/cryptodev/sdk_patches/0059-fix-some-issues-with-parsing-mpstat-output.patch | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/recipes-kernel/cryptodev/sdk_patches/0059-fix-some-issues-with-parsing-mpstat-output.patch b/recipes-kernel/cryptodev/sdk_patches/0059-fix-some-issues-with-parsing-mpstat-output.patch deleted file mode 100644 index fd2fedad..00000000 --- a/recipes-kernel/cryptodev/sdk_patches/0059-fix-some-issues-with-parsing-mpstat-output.patch +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | From 28c87b3dd5ed2ac90185b09bdc7233648d5d89b5 Mon Sep 17 00:00:00 2001 | ||
2 | From: Cristian Stoica <cristian.stoica@nxp.com> | ||
3 | Date: Wed, 26 Oct 2016 09:14:28 +0300 | ||
4 | Subject: [PATCH 059/104] fix some issues with parsing mpstat output | ||
5 | |||
6 | - mpstat with 'count' parameter will average the results for us on the | ||
7 | last line so we don't need to do this ourselves. | ||
8 | - set time format to ISO to avoid incorrect parsing of the header line | ||
9 | |||
10 | Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com> | ||
11 | --- | ||
12 | tests/async_speed_multi.sh | 7 +++---- | ||
13 | 1 file changed, 3 insertions(+), 4 deletions(-) | ||
14 | |||
15 | diff --git a/tests/async_speed_multi.sh b/tests/async_speed_multi.sh | ||
16 | index 94c2312..a28f72d 100755 | ||
17 | --- a/tests/async_speed_multi.sh | ||
18 | +++ b/tests/async_speed_multi.sh | ||
19 | @@ -21,6 +21,7 @@ | ||
20 | |||
21 | NUM_CORES=`nproc` | ||
22 | OUT_BASENAME="async_speed" | ||
23 | +S_TIME_FORMAT=ISO | ||
24 | MPSTAT="mpstat" | ||
25 | MPSTAT_OUT="mpstat_out" | ||
26 | |||
27 | @@ -47,10 +48,8 @@ function get_cpu_idle | ||
28 | header_line=`grep %idle ${MPSTAT_OUT} | head -n 1 | sed 's/\s\+/ /g'` | ||
29 | idle_column=`echo $header_line | wc -w` | ||
30 | |||
31 | - all_cpu_idle=`grep all ${MPSTAT_OUT} | tail -n +2 | sed 's/\s\+/ /g' | cut -d' ' -f ${idle_column} | SUM` | ||
32 | - mpstat_lines=`grep all ${MPSTAT_OUT} | tail -n +2 | wc -l` | ||
33 | - | ||
34 | - average_idle=`echo "scale=2; $all_cpu_idle / $mpstat_lines" | bc -l` | ||
35 | + average_idle=`grep Average ${MPSTAT_OUT} | sed 's/\s\+/ /g' | cut -d' ' -f ${idle_column} | tail -n 1` | ||
36 | + | ||
37 | echo $average_idle | ||
38 | } | ||
39 | |||
40 | -- | ||
41 | 2.10.2 | ||
42 | |||