From 8baecb634050f47601883edf39767cdcb99eee6b Mon Sep 17 00:00:00 2001 From: oscar Date: Mon, 3 Apr 2023 19:34:18 -0400 Subject: [PATCH] add depth setting --- dsmbr/dsmbr.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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);