git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Log anything that could prevent a daemon from starting.
[sliver-openvswitch.git]
/
utilities
/
ovs-ofctl.c
diff --git
a/utilities/ovs-ofctl.c
b/utilities/ovs-ofctl.c
index
994329e
..
bc8cc6b
100644
(file)
--- a/
utilities/ovs-ofctl.c
+++ b/
utilities/ovs-ofctl.c
@@
-827,9
+827,9
@@
do_ping(int argc, char *argv[])
OFPT_ECHO_REQUEST, &request);
random_bytes(rq_hdr + 1, payload);
OFPT_ECHO_REQUEST, &request);
random_bytes(rq_hdr + 1, payload);
-
gettimeofday(&start, NULL
);
+
xgettimeofday(&start
);
run(vconn_transact(vconn, ofpbuf_clone(request), &reply), "transact");
run(vconn_transact(vconn, ofpbuf_clone(request), &reply), "transact");
-
gettimeofday(&end, NULL
);
+
xgettimeofday(&end
);
rpy_hdr = reply->data;
if (reply->size != request->size
rpy_hdr = reply->data;
if (reply->size != request->size
@@
-874,7
+874,7
@@
do_benchmark(int argc OVS_UNUSED, char *argv[])
count, message_size, count * message_size);
open_vconn(argv[1], &vconn);
count, message_size, count * message_size);
open_vconn(argv[1], &vconn);
-
gettimeofday(&start, NULL
);
+
xgettimeofday(&start
);
for (i = 0; i < count; i++) {
struct ofpbuf *request, *reply;
struct ofp_header *rq_hdr;
for (i = 0; i < count; i++) {
struct ofpbuf *request, *reply;
struct ofp_header *rq_hdr;
@@
-884,7
+884,7
@@
do_benchmark(int argc OVS_UNUSED, char *argv[])
run(vconn_transact(vconn, request, &reply), "transact");
ofpbuf_delete(reply);
}
run(vconn_transact(vconn, request, &reply), "transact");
ofpbuf_delete(reply);
}
-
gettimeofday(&end, NULL
);
+
xgettimeofday(&end
);
vconn_close(vconn);
duration = ((1000*(double)(end.tv_sec - start.tv_sec))
vconn_close(vconn);
duration = ((1000*(double)(end.tv_sec - start.tv_sec))