Skip to content

Add CPU info to the speed command summary - #9669

Closed
bernd-edlinger wants to merge 2 commits into
openssl:masterfrom
bernd-edlinger:add_cpu_info_str_to_speed_command
Closed

bernd-edlinger wants to merge 2 commits into
openssl:masterfrom
bernd-edlinger:add_cpu_info_str_to_speed_command

Conversation

@bernd-edlinger

Copy link
Copy Markdown
Member

I noticed the speed info depends heavily on the enabled CPU features.
I would like to see the effective OPENSSL_ia32cap value on each output
if this speed command.

@bernd-edlinger bernd-edlinger added the branch: master Applies to master branch label Aug 22, 2019
Comment thread crypto/cversion.c Resolved
@levitte

levitte commented Aug 22, 2019

Copy link
Copy Markdown
Member

There should be an OPENSSL_info() implementation.

@bernd-edlinger

Copy link
Copy Markdown
Member Author

You mean move this to OPENSSL_info ?

Comment thread crypto/cversion.c Resolved
@levitte

levitte commented Aug 22, 2019

Copy link
Copy Markdown
Member

That would be my preference. A tangible difference between OPENSSL_info and OpenSSL_version is that the former only returns the actual value (and NULL if there is none to be had) while the latter returns a string composed of a label + colon + value. I would like to at least see the OPENSSL_info variant; if you want to have an OpenSSL_version variant is totally up to you, although I don't really see the necessity (or how it is version related info).

@bernd-edlinger

Copy link
Copy Markdown
Member Author

I agree, but I want to use this in a printf %s format. and %s is not happy with NULL.
Would it be okay to return "CPUINFO: N/A" or something when something goes wrong?

@levitte

levitte commented Aug 22, 2019

Copy link
Copy Markdown
Member

For OPENSSL_info, not returning NULL when there is no value is wrong.
For OpenSSL_version, returning "CPUINFO: N/A" is exactly right in that case.

@levitte

levitte commented Aug 22, 2019

Copy link
Copy Markdown
Member

For completeness, apps/info.c and possibly apps/version.c could be expanded to print these values. In this PR or another...

@bernd-edlinger

Copy link
Copy Markdown
Member Author

done.

@bernd-edlinger

Copy link
Copy Markdown
Member Author

now ready for review.
handle no-asm correctly
handle arm correctly
add documentaion.

@bernd-edlinger
bernd-edlinger force-pushed the add_cpu_info_str_to_speed_command branch from da3c70f to d066d54 Compare August 23, 2019 20:36
@bernd-edlinger

Copy link
Copy Markdown
Member Author

Fixed some more documentaion, rebased. now ready for real :)

Comment thread crypto/cversion.c Resolved
Comment thread crypto/info.c Resolved
@bernd-edlinger

Copy link
Copy Markdown
Member Author

how about that?

Comment thread crypto/info.c Resolved
Comment thread crypto/info.c Resolved
Comment thread crypto/info.c Resolved
Comment thread crypto/info.c Resolved
Comment thread crypto/info.c Resolved
@bernd-edlinger
bernd-edlinger force-pushed the add_cpu_info_str_to_speed_command branch from f6a168d to 406538a Compare August 24, 2019 12:40
@kroeckx

kroeckx commented Sep 1, 2019

Copy link
Copy Markdown
Member

It seems there are lots of conflicts in the mean time.

@levitte

levitte commented Sep 1, 2019

Copy link
Copy Markdown
Member

It seems there are lots of conflicts in the mean time.

No wonder, since there was another PR (now merged) that did very similar things.

@bernd-edlinger

Copy link
Copy Markdown
Member Author

Oh, sabotage ... ;)

@bernd-edlinger
bernd-edlinger force-pushed the add_cpu_info_str_to_speed_command branch from 406538a to 1da66fc Compare September 1, 2019 13:15
@bernd-edlinger
bernd-edlinger dismissed levitte’s stale review September 1, 2019 13:16

removed stale review

Comment thread apps/version.c
printf(" )");
}
#endif

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.

Oh, good point!

bernd-edlinger added a commit to bernd-edlinger/openssl that referenced this pull request Mar 25, 2022
Reviewed-by: Richard Levitte <[email protected]>
(Merged from openssl#9669)

(cherry picked from commit 363e941)
bernd-edlinger added a commit to bernd-edlinger/openssl that referenced this pull request Jun 26, 2022
Reviewed-by: Richard Levitte <[email protected]>
(Merged from openssl#9669)

(cherry picked from commit 363e941)
bernd-edlinger added a commit to bernd-edlinger/openssl that referenced this pull request Jul 29, 2022
Reviewed-by: Richard Levitte <[email protected]>
(Merged from openssl#9669)

(cherry picked from commit 363e941)
bernd-edlinger added a commit to bernd-edlinger/openssl that referenced this pull request Sep 8, 2022
Reviewed-by: Richard Levitte <[email protected]>
(Merged from openssl#9669)

(cherry picked from commit 363e941)
bernd-edlinger added a commit to bernd-edlinger/openssl that referenced this pull request Sep 19, 2022
Reviewed-by: Richard Levitte <[email protected]>
(Merged from openssl#9669)

(cherry picked from commit 363e941)
bernd-edlinger added a commit to bernd-edlinger/openssl that referenced this pull request Nov 4, 2022
Reviewed-by: Richard Levitte <[email protected]>
(Merged from openssl#9669)

(cherry picked from commit 363e941)
bernd-edlinger added a commit to bernd-edlinger/openssl that referenced this pull request Nov 8, 2022
Reviewed-by: Richard Levitte <[email protected]>
(Merged from openssl#9669)

(cherry picked from commit 363e941)
bernd-edlinger added a commit to bernd-edlinger/openssl that referenced this pull request Nov 18, 2022
Reviewed-by: Richard Levitte <[email protected]>
(Merged from openssl#9669)

(cherry picked from commit 363e941)
bernd-edlinger added a commit to bernd-edlinger/openssl that referenced this pull request Dec 6, 2022
Reviewed-by: Richard Levitte <[email protected]>
(Merged from openssl#9669)

(cherry picked from commit 363e941)
bernd-edlinger added a commit to bernd-edlinger/openssl that referenced this pull request Dec 17, 2022
Reviewed-by: Richard Levitte <[email protected]>
(Merged from openssl#9669)

(cherry picked from commit 363e941)
bernd-edlinger added a commit to bernd-edlinger/openssl that referenced this pull request Dec 23, 2022
Reviewed-by: Richard Levitte <[email protected]>
(Merged from openssl#9669)

(cherry picked from commit 363e941)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

branch: master Applies to master branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants