diff options
author | Ben Pfaff <blp@nicira.com> | 2010-11-30 13:44:01 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-11-30 13:44:01 -0800 |
commit | cc01d0bb79103a01aa0afc3484249fd518b877ea (patch) | |
tree | 801d758dae2d4088a27c94458ec9ffed6055f854 /vswitchd/ovs-vswitchd.c | |
parent | 7fe079c253b8618ff7b8475a91cc6bdf7790c979 (diff) | |
download | openvswitch-cc01d0bb79103a01aa0afc3484249fd518b877ea.tar.gz |
Implement stress option framework.
Stress options allow developers testing Open vSwitch to trigger behavior
that otherwise would occur only in corner cases. Developers and testers
can thereby more easily discover bugs that would otherwise manifest only
rarely or nondeterministically. Stress options may cause surprising
behavior even when they do not actually reveal bugs, so they should only be
enabled as part of testing Open vSwitch.
This commit implements the framework and adds a few example stress options.
This commit started from code written by Andrew Lambeth.
Suggested-by: Henrik Amren <henrik@nicira.com>
CC: Andrew Lambeth <wal@nicira.com>
Diffstat (limited to 'vswitchd/ovs-vswitchd.c')
-rw-r--r-- | vswitchd/ovs-vswitchd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vswitchd/ovs-vswitchd.c b/vswitchd/ovs-vswitchd.c index 01f2ac29c..93f0371c6 100644 --- a/vswitchd/ovs-vswitchd.c +++ b/vswitchd/ovs-vswitchd.c @@ -41,6 +41,7 @@ #include "signals.h" #include "stream-ssl.h" #include "stream.h" +#include "stress.h" #include "svec.h" #include "timeval.h" #include "unixctl.h" @@ -67,6 +68,7 @@ main(int argc, char *argv[]) proctitle_init(argc, argv); set_program_name(argv[0]); + stress_init_command(); remote = parse_options(argc, argv); signal(SIGPIPE, SIG_IGN); sighup = signal_register(SIGHUP); |