{"action":"created","comment":{"url":"https://api.github.com/repos/openssl/openssl/pulls/comments/317353869","pull_request_review_id":279285457,"id":317353869,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMxNzM1Mzg2OQ==","diff_hunk":"@@ -10,8 +10,56 @@\n #include <stddef.h>\n #include <openssl/crypto.h>\n #include \"internal/dso_conf.h\"\n+#include \"internal/thread_once.h\"\n #include \"e_os.h\"\n \n+#if defined(__i386)   || defined(__i386__)   || defined(_M_IX86) || \\\n+    defined(__x86_64) || defined(__x86_64__) || \\\n+    defined(_M_AMD64) || defined(_M_X64)\n+# include \"internal/cryptlib.h\"\n+#elif defined(__arm__) || defined(__arm) || defined(__aarch64__)\n+# include \"arm_arch.h\"\n+#endif\n+\n+static const char* ossl_cpu_info_str = NULL;\n+static CRYPTO_ONCE init_cpu_info = CRYPTO_ONCE_STATIC_INIT;\n+\n+DEFINE_RUN_ONCE_STATIC(ossl_init_cpu_info_str)","path":"crypto/info.c","position":18,"original_position":18,"commit_id":"d066d542da54f3e2bebb1782d0d72e77c95d9a8e","original_commit_id":"d066d542da54f3e2bebb1782d0d72e77c95d9a8e","user":{"login":"bernd-edlinger","id":17638929,"node_id":"MDQ6VXNlcjE3NjM4OTI5","avatar_url":"https://avatars2.githubusercontent.com/u/17638929?v=4","gravatar_id":"","url":"https://api.github.com/users/bernd-edlinger","html_url":"https://github.com/bernd-edlinger","followers_url":"https://api.github.com/users/bernd-edlinger/followers","following_url":"https://api.github.com/users/bernd-edlinger/following{/other_user}","gists_url":"https://api.github.com/users/bernd-edlinger/gists{/gist_id}","starred_url":"https://api.github.com/users/bernd-edlinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bernd-edlinger/subscriptions","organizations_url":"https://api.github.com/users/bernd-edlinger/orgs","repos_url":"https://api.github.com/users/bernd-edlinger/repos","events_url":"https://api.github.com/users/bernd-edlinger/events{/privacy}","received_events_url":"https://api.github.com/users/bernd-edlinger/received_events","type":"User","site_admin":false},"body":"so i can call this do_init_info\r\nand the once thinf, ossl_init_info_once ?","created_at":"2019-08-24T10:58:37Z","updated_at":"2019-08-24T10:58:37Z","html_url":"https://github.com/openssl/openssl/pull/9669#discussion_r317353869","pull_request_url":"https://api.github.com/repos/openssl/openssl/pulls/9669","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/openssl/openssl/pulls/comments/317353869"},"html":{"href":"https://github.com/openssl/openssl/pull/9669#discussion_r317353869"},"pull_request":{"href":"https://api.github.com/repos/openssl/openssl/pulls/9669"}},"in_reply_to_id":317353623},"pull_request":{"url":"https://api.github.com/repos/openssl/openssl/pulls/9669","id":309938660,"node_id":"MDExOlB1bGxSZXF1ZXN0MzA5OTM4NjYw","html_url":"https://github.com/openssl/openssl/pull/9669","diff_url":"https://github.com/openssl/openssl/pull/9669.diff","patch_url":"https://github.com/openssl/openssl/pull/9669.patch","issue_url":"https://api.github.com/repos/openssl/openssl/issues/9669","number":9669,"state":"open","locked":false,"title":"Add CPU info to the speed command summary","user":{"login":"bernd-edlinger","id":17638929,"node_id":"MDQ6VXNlcjE3NjM4OTI5","avatar_url":"https://avatars2.githubusercontent.com/u/17638929?v=4","gravatar_id":"","url":"https://api.github.com/users/bernd-edlinger","html_url":"https://github.com/bernd-edlinger","followers_url":"https://api.github.com/users/bernd-edlinger/followers","following_url":"https://api.github.com/users/bernd-edlinger/following{/other_user}","gists_url":"https://api.github.com/users/bernd-edlinger/gists{/gist_id}","starred_url":"https://api.github.com/users/bernd-edlinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bernd-edlinger/subscriptions","organizations_url":"https://api.github.com/users/bernd-edlinger/orgs","repos_url":"https://api.github.com/users/bernd-edlinger/repos","events_url":"https://api.github.com/users/bernd-edlinger/events{/privacy}","received_events_url":"https://api.github.com/users/bernd-edlinger/received_events","type":"User","site_admin":false},"body":"I noticed the speed info depends heavily on the enabled CPU features.\r\nI would like to see the effective OPENSSL_ia32cap value on each output\r\nif this speed command.","created_at":"2019-08-22T12:34:14Z","updated_at":"2019-08-24T10:58:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a2754b49e348be7706331576d158a58d2efd1e04","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":441165144,"node_id":"MDU6TGFiZWw0NDExNjUxNDQ=","url":"https://api.github.com/repos/openssl/openssl/labels/master","name":"master","color":"bfdadc","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/openssl/openssl/pulls/9669/commits","review_comments_url":"https://api.github.com/repos/openssl/openssl/pulls/9669/comments","review_comment_url":"https://api.github.com/repos/openssl/openssl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openssl/openssl/issues/9669/comments","statuses_url":"https://api.github.com/repos/openssl/openssl/statuses/d066d542da54f3e2bebb1782d0d72e77c95d9a8e","head":{"label":"bernd-edlinger:add_cpu_info_str_to_speed_command","ref":"add_cpu_info_str_to_speed_command","sha":"d066d542da54f3e2bebb1782d0d72e77c95d9a8e","user":{"login":"bernd-edlinger","id":17638929,"node_id":"MDQ6VXNlcjE3NjM4OTI5","avatar_url":"https://avatars2.githubusercontent.com/u/17638929?v=4","gravatar_id":"","url":"https://api.github.com/users/bernd-edlinger","html_url":"https://github.com/bernd-edlinger","followers_url":"https://api.github.com/users/bernd-edlinger/followers","following_url":"https://api.github.com/users/bernd-edlinger/following{/other_user}","gists_url":"https://api.github.com/users/bernd-edlinger/gists{/gist_id}","starred_url":"https://api.github.com/users/bernd-edlinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bernd-edlinger/subscriptions","organizations_url":"https://api.github.com/users/bernd-edlinger/orgs","repos_url":"https://api.github.com/users/bernd-edlinger/repos","events_url":"https://api.github.com/users/bernd-edlinger/events{/privacy}","received_events_url":"https://api.github.com/users/bernd-edlinger/received_events","type":"User","site_admin":false},"repo":{"id":77028059,"node_id":"MDEwOlJlcG9zaXRvcnk3NzAyODA1OQ==","name":"openssl","full_name":"bernd-edlinger/openssl","private":false,"owner":{"login":"bernd-edlinger","id":17638929,"node_id":"MDQ6VXNlcjE3NjM4OTI5","avatar_url":"https://avatars2.githubusercontent.com/u/17638929?v=4","gravatar_id":"","url":"https://api.github.com/users/bernd-edlinger","html_url":"https://github.com/bernd-edlinger","followers_url":"https://api.github.com/users/bernd-edlinger/followers","following_url":"https://api.github.com/users/bernd-edlinger/following{/other_user}","gists_url":"https://api.github.com/users/bernd-edlinger/gists{/gist_id}","starred_url":"https://api.github.com/users/bernd-edlinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bernd-edlinger/subscriptions","organizations_url":"https://api.github.com/users/bernd-edlinger/orgs","repos_url":"https://api.github.com/users/bernd-edlinger/repos","events_url":"https://api.github.com/users/bernd-edlinger/events{/privacy}","received_events_url":"https://api.github.com/users/bernd-edlinger/received_events","type":"User","site_admin":false},"html_url":"https://github.com/bernd-edlinger/openssl","description":"TLS/SSL and crypto library","fork":true,"url":"https://api.github.com/repos/bernd-edlinger/openssl","forks_url":"https://api.github.com/repos/bernd-edlinger/openssl/forks","keys_url":"https://api.github.com/repos/bernd-edlinger/openssl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bernd-edlinger/openssl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bernd-edlinger/openssl/teams","hooks_url":"https://api.github.com/repos/bernd-edlinger/openssl/hooks","issue_events_url":"https://api.github.com/repos/bernd-edlinger/openssl/issues/events{/number}","events_url":"https://api.github.com/repos/bernd-edlinger/openssl/events","assignees_url":"https://api.github.com/repos/bernd-edlinger/openssl/assignees{/user}","branches_url":"https://api.github.com/repos/bernd-edlinger/openssl/branches{/branch}","tags_url":"https://api.github.com/repos/bernd-edlinger/openssl/tags","blobs_url":"https://api.github.com/repos/bernd-edlinger/openssl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bernd-edlinger/openssl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bernd-edlinger/openssl/git/refs{/sha}","trees_url":"https://api.github.com/repos/bernd-edlinger/openssl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bernd-edlinger/openssl/statuses/{sha}","languages_url":"https://api.github.com/repos/bernd-edlinger/openssl/languages","stargazers_url":"https://api.github.com/repos/bernd-edlinger/openssl/stargazers","contributors_url":"https://api.github.com/repos/bernd-edlinger/openssl/contributors","subscribers_url":"https://api.github.com/repos/bernd-edlinger/openssl/subscribers","subscription_url":"https://api.github.com/repos/bernd-edlinger/openssl/subscription","commits_url":"https://api.github.com/repos/bernd-edlinger/openssl/commits{/sha}","git_commits_url":"https://api.github.com/repos/bernd-edlinger/openssl/git/commits{/sha}","comments_url":"https://api.github.com/repos/bernd-edlinger/openssl/comments{/number}","issue_comment_url":"https://api.github.com/repos/bernd-edlinger/openssl/issues/comments{/number}","contents_url":"https://api.github.com/repos/bernd-edlinger/openssl/contents/{+path}","compare_url":"https://api.github.com/repos/bernd-edlinger/openssl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bernd-edlinger/openssl/merges","archive_url":"https://api.github.com/repos/bernd-edlinger/openssl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bernd-edlinger/openssl/downloads","issues_url":"https://api.github.com/repos/bernd-edlinger/openssl/issues{/number}","pulls_url":"https://api.github.com/repos/bernd-edlinger/openssl/pulls{/number}","milestones_url":"https://api.github.com/repos/bernd-edlinger/openssl/milestones{/number}","notifications_url":"https://api.github.com/repos/bernd-edlinger/openssl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bernd-edlinger/openssl/labels{/name}","releases_url":"https://api.github.com/repos/bernd-edlinger/openssl/releases{/id}","deployments_url":"https://api.github.com/repos/bernd-edlinger/openssl/deployments","created_at":"2016-12-21T07:18:44Z","updated_at":"2019-08-24T07:08:46Z","pushed_at":"2019-08-24T09:44:42Z","git_url":"git://github.com/bernd-edlinger/openssl.git","ssh_url":"git@github.com:bernd-edlinger/openssl.git","clone_url":"https://github.com/bernd-edlinger/openssl.git","svn_url":"https://github.com/bernd-edlinger/openssl","homepage":"https://www.openssl.org","size":174395,"stargazers_count":2,"watchers_count":2,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"openssl:master","ref":"master","sha":"f42c225d7f9a0bce0bf46103343402d3f0ad742f","user":{"login":"openssl","id":3279138,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyNzkxMzg=","avatar_url":"https://avatars2.githubusercontent.com/u/3279138?v=4","gravatar_id":"","url":"https://api.github.com/users/openssl","html_url":"https://github.com/openssl","followers_url":"https://api.github.com/users/openssl/followers","following_url":"https://api.github.com/users/openssl/following{/other_user}","gists_url":"https://api.github.com/users/openssl/gists{/gist_id}","starred_url":"https://api.github.com/users/openssl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openssl/subscriptions","organizations_url":"https://api.github.com/users/openssl/orgs","repos_url":"https://api.github.com/users/openssl/repos","events_url":"https://api.github.com/users/openssl/events{/privacy}","received_events_url":"https://api.github.com/users/openssl/received_events","type":"Organization","site_admin":false},"repo":{"id":7634677,"node_id":"MDEwOlJlcG9zaXRvcnk3NjM0Njc3","name":"openssl","full_name":"openssl/openssl","private":false,"owner":{"login":"openssl","id":3279138,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyNzkxMzg=","avatar_url":"https://avatars2.githubusercontent.com/u/3279138?v=4","gravatar_id":"","url":"https://api.github.com/users/openssl","html_url":"https://github.com/openssl","followers_url":"https://api.github.com/users/openssl/followers","following_url":"https://api.github.com/users/openssl/following{/other_user}","gists_url":"https://api.github.com/users/openssl/gists{/gist_id}","starred_url":"https://api.github.com/users/openssl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openssl/subscriptions","organizations_url":"https://api.github.com/users/openssl/orgs","repos_url":"https://api.github.com/users/openssl/repos","events_url":"https://api.github.com/users/openssl/events{/privacy}","received_events_url":"https://api.github.com/users/openssl/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/openssl/openssl","description":"TLS/SSL and crypto library","fork":false,"url":"https://api.github.com/repos/openssl/openssl","forks_url":"https://api.github.com/repos/openssl/openssl/forks","keys_url":"https://api.github.com/repos/openssl/openssl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openssl/openssl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openssl/openssl/teams","hooks_url":"https://api.github.com/repos/openssl/openssl/hooks","issue_events_url":"https://api.github.com/repos/openssl/openssl/issues/events{/number}","events_url":"https://api.github.com/repos/openssl/openssl/events","assignees_url":"https://api.github.com/repos/openssl/openssl/assignees{/user}","branches_url":"https://api.github.com/repos/openssl/openssl/branches{/branch}","tags_url":"https://api.github.com/repos/openssl/openssl/tags","blobs_url":"https://api.github.com/repos/openssl/openssl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openssl/openssl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openssl/openssl/git/refs{/sha}","trees_url":"https://api.github.com/repos/openssl/openssl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openssl/openssl/statuses/{sha}","languages_url":"https://api.github.com/repos/openssl/openssl/languages","stargazers_url":"https://api.github.com/repos/openssl/openssl/stargazers","contributors_url":"https://api.github.com/repos/openssl/openssl/contributors","subscribers_url":"https://api.github.com/repos/openssl/openssl/subscribers","subscription_url":"https://api.github.com/repos/openssl/openssl/subscription","commits_url":"https://api.github.com/repos/openssl/openssl/commits{/sha}","git_commits_url":"https://api.github.com/repos/openssl/openssl/git/commits{/sha}","comments_url":"https://api.github.com/repos/openssl/openssl/comments{/number}","issue_comment_url":"https://api.github.com/repos/openssl/openssl/issues/comments{/number}","contents_url":"https://api.github.com/repos/openssl/openssl/contents/{+path}","compare_url":"https://api.github.com/repos/openssl/openssl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openssl/openssl/merges","archive_url":"https://api.github.com/repos/openssl/openssl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openssl/openssl/downloads","issues_url":"https://api.github.com/repos/openssl/openssl/issues{/number}","pulls_url":"https://api.github.com/repos/openssl/openssl/pulls{/number}","milestones_url":"https://api.github.com/repos/openssl/openssl/milestones{/number}","notifications_url":"https://api.github.com/repos/openssl/openssl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openssl/openssl/labels{/name}","releases_url":"https://api.github.com/repos/openssl/openssl/releases{/id}","deployments_url":"https://api.github.com/repos/openssl/openssl/deployments","created_at":"2013-01-15T22:34:48Z","updated_at":"2019-08-24T09:41:23Z","pushed_at":"2019-08-24T10:47:56Z","git_url":"git://github.com/openssl/openssl.git","ssh_url":"git@github.com:openssl/openssl.git","clone_url":"https://github.com/openssl/openssl.git","svn_url":"https://github.com/openssl/openssl","homepage":"https://www.openssl.org","size":173894,"stargazers_count":11137,"watchers_count":11137,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4832,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1005,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":4832,"open_issues":1005,"watchers":11137,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openssl/openssl/pulls/9669"},"html":{"href":"https://github.com/openssl/openssl/pull/9669"},"issue":{"href":"https://api.github.com/repos/openssl/openssl/issues/9669"},"comments":{"href":"https://api.github.com/repos/openssl/openssl/issues/9669/comments"},"review_comments":{"href":"https://api.github.com/repos/openssl/openssl/pulls/9669/comments"},"review_comment":{"href":"https://api.github.com/repos/openssl/openssl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openssl/openssl/pulls/9669/commits"},"statuses":{"href":"https://api.github.com/repos/openssl/openssl/statuses/d066d542da54f3e2bebb1782d0d72e77c95d9a8e"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"bernd-edlinger"}}