Skip to content

Add cpu info str to speed, version and info command - #11846

Closed
bernd-edlinger wants to merge 3 commits into
openssl:OpenSSL_1_1_1-stablefrom
bernd-edlinger:add_cpu_info_str_to_speed_command_1
Closed

bernd-edlinger wants to merge 3 commits into
openssl:OpenSSL_1_1_1-stablefrom
bernd-edlinger:add_cpu_info_str_to_speed_command_1

Conversation

@bernd-edlinger

Copy link
Copy Markdown
Member

This is cherry-pick of
47ca833
096978f
363e941

to 1.1.1

Checklist
  • documentation is added or updated
  • tests are added or updated

This adds the flag OPENSSL_MODULES_DIR for OpenSSL_version(), and the
flag '-m' for 'openssl version'.

Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#8709)

(cherry picked from commit 47ca833)
@bernd-edlinger bernd-edlinger added the branch: 1.1.1 Applies to OpenSSL_1_1_1-stable branch (EOL) label May 16, 2020
@bernd-edlinger
bernd-edlinger force-pushed the add_cpu_info_str_to_speed_command_1 branch from 793008b to cfcf7c2 Compare May 16, 2020 18:13
levitte and others added 2 commits May 17, 2020 01:39
'openssl version -r' prints the seed source based on compiler macros.
This does not necessarily reflect the library's idea of what seed
sources to use, so we reimplement the list of seed sources as a
OPENSSL_info() item and display that instead.

Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#9689)

(cherry picked from commit 096978f)
Reviewed-by: Richard Levitte <[email protected]>
(Merged from openssl#9669)

(cherry picked from commit 363e941)
@bernd-edlinger
bernd-edlinger force-pushed the add_cpu_info_str_to_speed_command_1 branch from cfcf7c2 to 38868a7 Compare May 16, 2020 23:40
@bernd-edlinger

Copy link
Copy Markdown
Member Author

I wonder what happened to appveyor CI:
interesting which error happens in the
following build Environment: VSVER=15; Configuration: shared; Platform: x64
https://ci.appveyor.com/project/openssl/openssl/builds/32924846/job/8p0t1b4m4c4u8be2:
ObjectNotFound: (Microsoft.Power....

the same error happens for PRs againt master and 1.1.1 so it must be a general problem.

Comment thread apps/version.c
{"b", OPT_B, '-', "Show build date"},
{"d", OPT_D, '-', "Show configuration directory"},
{"e", OPT_E, '-', "Show engines directory"},
{"m", OPT_M, '-', "Show modules directory"},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no such thing in 1.1.1...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, and it just prints N/A but I see that as a useful feature for scripts,
instead of having to figure out which version it is,

@levitte

levitte commented May 22, 2020

Copy link
Copy Markdown
Member

openssl info is a new feature in 3.0, I don't see that it's viable for 1.1.1

@bernd-edlinger

Copy link
Copy Markdown
Member Author

The main motivation for this PR is the need for proper CPUINFO
in speed and similar commands, I just needed some other commits since otherwise
the the code would not be merged cleanly, as these were committed before
the CPUINFO. I think we need to have this information so users of
the LTS branch are able to report their CPU flags, in case we ask them to do so.
Having more information in openssl version and openssl info just looks like the
right thing to do.

@t8m t8m added the triaged: feature The issue/pr requests/adds a feature label Aug 4, 2021
@t8m t8m added this to the Post 3.0.0 milestone Sep 24, 2021
@t8m t8m closed this Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

branch: 1.1.1 Applies to OpenSSL_1_1_1-stable branch (EOL) triaged: feature The issue/pr requests/adds a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants