- 
                Notifications
    You must be signed in to change notification settings 
- Fork 11
Add ability to set thread affinity #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
d568228
              caed5ee
              393f457
              953a33f
              e78cd6a
              1b1e38c
              2484c08
              0d9c3c8
              a1b53d4
              30f2a1f
              File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -50,7 +50,7 @@ size_t num_calls; | |
| size_t *counts; | ||
| OSSL_TIME max_time; | ||
|  | ||
| int err = 0; | ||
| int error = 0; | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why this change? Theres a good portion of this PR dedicated to renaming variables that doesn't really have anything to do with the addition of thread affinity management. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this address linker issues. there is function  There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wouldn't it be more prudent to just rename the err() function that commit 953a33f introduced then? Though I'm surprised that a reasonable compiler can't tell the difference between a variable reference and a function call of the same name. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 
 the  | ||
|  | ||
| static int threadcount; | ||
|  | ||
|  | @@ -69,7 +69,7 @@ static void do_pemread(size_t num) | |
|  | ||
| if (sample_id >= SAMPLE_ALL) { | ||
| fprintf(stderr, "%s no sample key set for test\n", __func__); | ||
| err = 1; | ||
| error = 1; | ||
| return; | ||
| } | ||
|  | ||
|  | @@ -80,7 +80,7 @@ static void do_pemread(size_t num) | |
| if (pem == NULL) { | ||
| fprintf(stderr, "%s Cannot create mem BIO [%s PEM]\n", | ||
| __func__, sample_names[sample_id]); | ||
| err = 1; | ||
| error = 1; | ||
| return; | ||
| } | ||
|  | ||
|  | @@ -93,14 +93,14 @@ static void do_pemread(size_t num) | |
| if (key == NULL) { | ||
| fprintf(stderr, "Failed to create key [%s PEM]\n", | ||
| sample_names[sample_id]); | ||
| err = 1; | ||
| error = 1; | ||
| goto end; | ||
| } | ||
| EVP_PKEY_free(key); | ||
| if (BIO_reset(pem) == 0) { | ||
| fprintf(stderr, "Failed to reset BIO [%s PEM]\n", | ||
| sample_names[sample_id]); | ||
| err = 1; | ||
| error = 1; | ||
| goto end; | ||
| } | ||
|  | ||
|  | @@ -130,7 +130,7 @@ static void do_derread(size_t num) | |
|  | ||
| if (sample_id >= SAMPLE_ALL) { | ||
| fprintf(stderr, "%s no sample key set for test\n", __func__); | ||
| err = 1; | ||
| error = 1; | ||
| return; | ||
| } | ||
|  | ||
|  | @@ -144,7 +144,7 @@ static void do_derread(size_t num) | |
| if (pkey == NULL) { | ||
| fprintf(stderr, "%s pkey is NULL [%s DER]\n", | ||
| __func__, sample_names[sample_id]); | ||
| err = 1; | ||
| error = 1; | ||
| goto error; | ||
| } | ||
| error: | ||
|  | @@ -238,7 +238,7 @@ static void report_result(int key_id, int format_id, int verbosity) | |
| { | ||
| struct call_times times = { 0 }; | ||
|  | ||
| if (err) { | ||
| if (error) { | ||
| fprintf(stderr, "Error during test of %s in %s format\n", | ||
| sample_names[key_id], format_names[format_id]); | ||
| exit(EXIT_FAILURE); | ||
|  | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't use new lines around include in #if.