diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2019-08-22 14:28:23 +0200 |
---|---|---|
committer | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2019-09-02 20:46:34 +0200 |
commit | 363e941ed43c648adf4d6d0874077ddd80041e1f (patch) | |
tree | 0c2eb8ae502830118e895b4e79a77a337b9b972f /apps/info.c | |
parent | Diverse ERR fixes (diff) | |
download | openssl-363e941ed43c648adf4d6d0874077ddd80041e1f.tar.xz openssl-363e941ed43c648adf4d6d0874077ddd80041e1f.zip |
Add CPU info to the speed command summary
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9669)
Diffstat (limited to 'apps/info.c')
-rw-r--r-- | apps/info.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/info.c b/apps/info.c index d67ed87df3..4656141184 100644 --- a/apps/info.c +++ b/apps/info.c @@ -14,7 +14,7 @@ typedef enum OPTION_choice { OPT_ERR = -1, OPT_EOF = 0, OPT_HELP, OPT_CONFIGDIR, OPT_ENGINESDIR, OPT_MODULESDIR, OPT_DSOEXT, OPT_DIRNAMESEP, - OPT_LISTSEP, OPT_SEEDS + OPT_LISTSEP, OPT_SEEDS, OPT_CPUSETTINGS } OPTION_CHOICE; const OPTIONS info_options[] = { @@ -31,6 +31,7 @@ const OPTIONS info_options[] = { {"dirnamesep", OPT_DIRNAMESEP, '-', "Directory-filename separator"}, {"listsep", OPT_LISTSEP, '-', "List separator character"}, {"seeds", OPT_SEEDS, '-', "Seed sources"}, + {"cpusettings", OPT_CPUSETTINGS, '-', "CPU settings info"}, {NULL} }; @@ -79,6 +80,10 @@ opthelp: type = OPENSSL_INFO_SEED_SOURCE; dirty++; break; + case OPT_CPUSETTINGS: + type = OPENSSL_INFO_CPU_SETTINGS; + dirty++; + break; } } if (opt_num_rest() != 0) { |