diff --git a/dsmbr/dsmbr.cc b/dsmbr/dsmbr.cc index 3aa7f69..170febe 100755 --- a/dsmbr/dsmbr.cc +++ b/dsmbr/dsmbr.cc @@ -557,6 +557,7 @@ usage() " -v: verbose mode.\n" " -t: run time.\n" " -T: warmup time.\n" + " -d: request depth.\n" " -i: interarrival time distribution.\n" " -O: module arguments ('key'='value'), repeatable.\n\n"); } @@ -596,7 +597,7 @@ static void dsmbr_getopt(int argc, char *argv[]) { 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) { case 'q': { options.target_qps = strtoul(optarg, NULL, 10); @@ -674,6 +675,10 @@ dsmbr_getopt(int argc, char *argv[]) options.mod_argc++; break; } + case 'd' : { + options.depth = strtoul(optarg, NULL, 10); + break; + } case 'h': usage(); exit(0);