add depth setting

This commit is contained in:
oscar 2023-04-03 19:34:18 -04:00
parent 09f93b94ae
commit 8baecb6340

View File

@ -557,6 +557,7 @@ usage()
" -v: verbose mode.\n" " -v: verbose mode.\n"
" -t: run time.\n" " -t: run time.\n"
" -T: warmup time.\n" " -T: warmup time.\n"
" -d: request depth.\n"
" -i: interarrival time distribution.\n" " -i: interarrival time distribution.\n"
" -O: module arguments ('key'='value'), repeatable.\n\n"); " -O: module arguments ('key'='value'), repeatable.\n\n");
} }
@ -596,7 +597,7 @@ static void
dsmbr_getopt(int argc, char *argv[]) dsmbr_getopt(int argc, char *argv[])
{ {
int ch; int ch;
while ((ch = getopt(argc, argv, "q:s:p:o:a:c:m:M:Svt:T:i:O:h")) != -1) { while ((ch = getopt(argc, argv, "q:s:p:o:a:c:m:M:Svt:T:i:O:d:h")) != -1) {
switch (ch) { switch (ch) {
case 'q': { case 'q': {
options.target_qps = strtoul(optarg, NULL, 10); options.target_qps = strtoul(optarg, NULL, 10);
@ -674,6 +675,10 @@ dsmbr_getopt(int argc, char *argv[])
options.mod_argc++; options.mod_argc++;
break; break;
} }
case 'd' : {
options.depth = strtoul(optarg, NULL, 10);
break;
}
case 'h': case 'h':
usage(); usage();
exit(0); exit(0);