diff options
Diffstat (limited to 'recipes-kernel/cryptodev/sdk_patches/0052-add-flag-to-report-in-a-machine-friendly-format.patch')
-rw-r--r-- | recipes-kernel/cryptodev/sdk_patches/0052-add-flag-to-report-in-a-machine-friendly-format.patch | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/recipes-kernel/cryptodev/sdk_patches/0052-add-flag-to-report-in-a-machine-friendly-format.patch b/recipes-kernel/cryptodev/sdk_patches/0052-add-flag-to-report-in-a-machine-friendly-format.patch deleted file mode 100644 index c2b88a59..00000000 --- a/recipes-kernel/cryptodev/sdk_patches/0052-add-flag-to-report-in-a-machine-friendly-format.patch +++ /dev/null | |||
@@ -1,55 +0,0 @@ | |||
1 | From 6d2e0927c2ed2795267d7652d9413d7e01da202e Mon Sep 17 00:00:00 2001 | ||
2 | From: Cristian Stoica <cristian.stoica@nxp.com> | ||
3 | Date: Tue, 25 Oct 2016 16:54:06 +0300 | ||
4 | Subject: [PATCH 052/104] add flag to report in a machine friendly format | ||
5 | |||
6 | Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com> | ||
7 | --- | ||
8 | tests/async_speed.c | 8 +++++++- | ||
9 | 1 file changed, 7 insertions(+), 1 deletion(-) | ||
10 | |||
11 | diff --git a/tests/async_speed.c b/tests/async_speed.c | ||
12 | index fff3414..1941750 100644 | ||
13 | --- a/tests/async_speed.c | ||
14 | +++ b/tests/async_speed.c | ||
15 | @@ -35,6 +35,7 @@ | ||
16 | struct test_params { | ||
17 | bool tflag; | ||
18 | bool nflag; | ||
19 | + bool mflag; | ||
20 | int tvalue; | ||
21 | int nvalue; | ||
22 | }; | ||
23 | @@ -43,6 +44,7 @@ const char usage_str[] = "Usage: %s [OPTION]... <cipher>|<hash>\n" | ||
24 | "Run benchmark test for cipher or hash\n\n" | ||
25 | " -t <secs>\t" "time to run each test (default 10 secs)\n" | ||
26 | " -n <bytes>\t" "size of the test buffer\n" | ||
27 | + " -m\t\t" "output in a machine readable format\n" | ||
28 | " -h\t\t" "show this help\n" | ||
29 | ; | ||
30 | |||
31 | @@ -369,9 +371,10 @@ int main(int argc, char **argv) | ||
32 | |||
33 | tp.tflag = false; | ||
34 | tp.nflag = false; | ||
35 | + tp.mflag = false; | ||
36 | alg_flag = false; | ||
37 | opterr = 0; | ||
38 | - while ((c = getopt(argc, argv, "hn:t:")) != -1) { | ||
39 | + while ((c = getopt(argc, argv, "hn:t:m")) != -1) { | ||
40 | switch (c) { | ||
41 | case 'n': | ||
42 | tp.nvalue = atoi(optarg); | ||
43 | @@ -381,6 +384,9 @@ int main(int argc, char **argv) | ||
44 | tp.tvalue = atoi(optarg); | ||
45 | tp.tflag = true; | ||
46 | break; | ||
47 | + case 'm': | ||
48 | + tp.mflag = true; | ||
49 | + break; | ||
50 | case 'h': /* no break */ | ||
51 | default: | ||
52 | usage(argv[0]); | ||
53 | -- | ||
54 | 2.10.2 | ||
55 | |||