secchan/ofproto.c \
secchan/pktbuf.c \
vswitchd/bridge.c \
- vswitchd/mgmt.c
+ vswitchd/mgmt.c \
+ vswitchd/ovs-brcompatd.c
lib/coverage-counters.c: $(COVERAGE_SOURCES) lib/coverage-scan.pl
(cd $(srcdir) && $(PERL) lib/coverage-scan.pl $(COVERAGE_SOURCES)) > $@.tmp
mv $@.tmp $@
#include "cfg.h"
#include "command-line.h"
+#include "coverage.h"
#include "daemon.h"
#include "dirs.h"
#include "dpif.h"
if (cfg_is_dirty()) {
int error1 = cfg_write();
int error2 = cfg_read();
+ long long int reload_start = time_msec();
int error3 = system(reload_command);
+ long long int elapsed = time_msec() - reload_start;
+ COVERAGE_INC(brcompatd_reload);
+ if (elapsed > 0) {
+ VLOG_INFO("reload command executed in %lld ms", elapsed);
+ }
if (error3 == -1) {
- VLOG_ERR_RL(&rl, "failed to execute reload command: %s",
- strerror(errno));
+ VLOG_ERR("failed to execute reload command: %s", strerror(errno));
} else if (error3 != 0) {
char *msg = process_status_msg(error3);
- VLOG_ERR_RL(&rl, "reload command exited with error (%s)", msg);
+ VLOG_ERR("reload command exited with error (%s)", msg);
free(msg);
}
return error1 ? error1 : error2 ? error2 : error3 ? ECHILD : 0;