Add breakdown option
This commit is contained in:
parent
029e185c6c
commit
31f24a2a55
@ -17,13 +17,15 @@ usage(void)
|
|||||||
{
|
{
|
||||||
rerr("%s -- version %s\n", progname, version);
|
rerr("%s -- version %s\n", progname, version);
|
||||||
rerr("\n");
|
rerr("\n");
|
||||||
rerr("Usage: %s [-c offsetfile] [-lh] tracedir\n", progname);
|
rerr("Usage: %s [-c offsetfile] [-blh] tracedir\n", progname);
|
||||||
rerr("\n");
|
rerr("\n");
|
||||||
rerr("Options:\n");
|
rerr("Options:\n");
|
||||||
rerr(" -c offsetfile Use the given offset file to correct\n");
|
rerr(" -c offsetfile Use the given offset file to correct\n");
|
||||||
rerr(" the clocks among nodes. It can be\n");
|
rerr(" the clocks among nodes. It can be\n");
|
||||||
rerr(" generated by the ovnisync program\n");
|
rerr(" generated by the ovnisync program\n");
|
||||||
rerr("\n");
|
rerr("\n");
|
||||||
|
rerr(" -b Enable breakdown model (costly)\n");
|
||||||
|
rerr("\n");
|
||||||
rerr(" -l Enable linter mode. Extra tests will\n");
|
rerr(" -l Enable linter mode. Extra tests will\n");
|
||||||
rerr(" be performed.\n");
|
rerr(" be performed.\n");
|
||||||
rerr("\n");
|
rerr("\n");
|
||||||
@ -42,7 +44,7 @@ emu_args_init(struct emu_args *args, int argc, char *argv[])
|
|||||||
memset(args, 0, sizeof(struct emu_args));
|
memset(args, 0, sizeof(struct emu_args));
|
||||||
|
|
||||||
int opt;
|
int opt;
|
||||||
while ((opt = getopt(argc, argv, "c:lh")) != -1) {
|
while ((opt = getopt(argc, argv, "bc:lh")) != -1) {
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
case 'c':
|
case 'c':
|
||||||
args->clock_offset_file = optarg;
|
args->clock_offset_file = optarg;
|
||||||
@ -50,6 +52,9 @@ emu_args_init(struct emu_args *args, int argc, char *argv[])
|
|||||||
case 'l':
|
case 'l':
|
||||||
args->linter_mode = 1;
|
args->linter_mode = 1;
|
||||||
break;
|
break;
|
||||||
|
case 'b':
|
||||||
|
args->breakdown = 1;
|
||||||
|
break;
|
||||||
case 'h':
|
case 'h':
|
||||||
default: /* '?' */
|
default: /* '?' */
|
||||||
usage();
|
usage();
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
struct emu_args {
|
struct emu_args {
|
||||||
int linter_mode;
|
int linter_mode;
|
||||||
|
int breakdown;
|
||||||
char *clock_offset_file;
|
char *clock_offset_file;
|
||||||
char *tracedir;
|
char *tracedir;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user