event: reactor loop delay configurable from cmdline
Change-Id: I38ab7b60d528fa9e0161ddba48c723601d8a6b78 Signed-off-by: Wojciech Malikowski <wojciech.malikowski@intel.com> Reviewed-on: https://review.gerrithub.io/437142 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
6907c36f2c
commit
d1a6901c61
@ -119,6 +119,8 @@ static const struct option g_cmdline_options[] = {
|
|||||||
{"huge-dir", no_argument, NULL, HUGE_DIR_OPT_IDX},
|
{"huge-dir", no_argument, NULL, HUGE_DIR_OPT_IDX},
|
||||||
#define NUM_TRACE_ENTRIES_OPT_IDX 260
|
#define NUM_TRACE_ENTRIES_OPT_IDX 260
|
||||||
{"num-trace-entries", required_argument, NULL, NUM_TRACE_ENTRIES_OPT_IDX},
|
{"num-trace-entries", required_argument, NULL, NUM_TRACE_ENTRIES_OPT_IDX},
|
||||||
|
#define MAX_REACTOR_DELAY_OPT_IDX 261
|
||||||
|
{"max-delay", required_argument, NULL, MAX_REACTOR_DELAY_OPT_IDX},
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Global section */
|
/* Global section */
|
||||||
@ -732,6 +734,7 @@ usage(void (*app_usage)(void))
|
|||||||
printf(" --silence-noticelog disable notice level logging to stderr\n");
|
printf(" --silence-noticelog disable notice level logging to stderr\n");
|
||||||
printf(" -u, --no-pci disable PCI access\n");
|
printf(" -u, --no-pci disable PCI access\n");
|
||||||
printf(" --wait-for-rpc wait for RPCs to initialize subsystems\n");
|
printf(" --wait-for-rpc wait for RPCs to initialize subsystems\n");
|
||||||
|
printf(" --max-delay <num> maximum reactor delay (in microseconds)\n");
|
||||||
printf(" -B, --pci-blacklist <bdf>\n");
|
printf(" -B, --pci-blacklist <bdf>\n");
|
||||||
printf(" pci addr to blacklist (can be used more than once)\n");
|
printf(" pci addr to blacklist (can be used more than once)\n");
|
||||||
printf(" -R, --huge-unlink unlink huge files after initialization\n");
|
printf(" -R, --huge-unlink unlink huge files after initialization\n");
|
||||||
@ -943,6 +946,12 @@ spdk_app_parse_args(int argc, char **argv, struct spdk_app_opts *opts,
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case MAX_REACTOR_DELAY_OPT_IDX:
|
||||||
|
if (optarg == NULL) {
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
opts->max_delay_us = atoi(optarg);
|
||||||
|
break;
|
||||||
case '?':
|
case '?':
|
||||||
/*
|
/*
|
||||||
* In the event getopt() above detects an option
|
* In the event getopt() above detects an option
|
||||||
|
Loading…
Reference in New Issue
Block a user