Skip to content

Commit

Permalink
dw_client: removing no more working -ec option, now superseded by -C …
Browse files Browse the repository at this point in the history
…exp:value syntax since commit 184e55c (issue #20)
  • Loading branch information
tomcucinotta committed Sep 29, 2023
1 parent 0dd7be2 commit 61d1bfb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/dw_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ unsigned int n_compute = 0; // Number of COMPUTE requests

unsigned int default_compute_us = 1000;

int exp_comptimes = 0;

pd_spec_t send_pkt_size_pd = { .prob = FIXED, .val = 128, .std = NAN, .min = NAN, .max = NAN };
pd_spec_t send_period_us_pd = { .prob = FIXED, .val = 10000, .std = NAN, .min = NAN, .max = NAN };

Expand Down Expand Up @@ -641,9 +639,6 @@ int main(int argc, char *argv[]) {
weights[LOAD] = atoi(argv[1]);
argc--;
argv++;
} else if (strcmp(argv[0], "-ec") == 0 ||
strcmp(argv[0], "--exp-comp") == 0) {
exp_comptimes = 1;
} else if (strcmp(argv[0], "-ws") == 0 ||
strcmp(argv[0], "--waitspin") == 0) {
wait_spinning = 1;
Expand Down Expand Up @@ -782,8 +777,6 @@ int main(int argc, char *argv[]) {
printf(" waitspin=%d\n", wait_spinning);
printf(" ramp_num_steps=%d, ramp_delta_rate=%d, ramp_step_secs=%d\n",
ramp_num_steps, ramp_delta_rate, ramp_step_secs);
/*printf(" comptime_us=%lu, exp_comptimes=%d\n", comptimes_us,
exp_comptimes); TODO: Update */
printf(" pkt_size=%s (+%d for headers)\n", pd_str(&send_pkt_size_pd),
TCPIP_HEADERS_SIZE);
/*printf(" resp_size=%lu (%lu with headers), exp_resp_size=%d\n", resp_size,
Expand All @@ -795,6 +788,8 @@ int main(int argc, char *argv[]) {
printf(" num_sessions: %d\n", num_sessions);
printf(" per_session_output: %d\n", per_session_output);

printf(" request template: "); ccmd_log(ccmd);

assert(send_pkt_size_pd.val >= MIN_SEND_SIZE);
assert(send_pkt_size_pd.val + TCPIP_HEADERS_SIZE <= BUF_SIZE);
assert(no_delay == 0 || no_delay == 1);
Expand Down

0 comments on commit 61d1bfb

Please sign in to comment.