projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c8552c
)
ofproto: Add coverage counter for reinit_ports()
author
Justin Pettit
<jpettit@nicira.com>
Tue, 26 Oct 2010 21:54:13 +0000
(14:54 -0700)
committer
Justin Pettit
<jpettit@nicira.com>
Tue, 26 Oct 2010 21:57:29 +0000
(14:57 -0700)
The reinit_ports() function is an interesting enough case that it would
be good to know if we're hitting it often. This adds a
"ofproto_reinit_ports" coverage counter.
ofproto/ofproto.c
patch
|
blob
|
history
diff --git
a/ofproto/ofproto.c
b/ofproto/ofproto.c
index ab9a835e6161eafe242e5760bd9bff568023674d..f44d8a2c00291c2f68e14e82070ec64e3057e1b7 100644
(file)
--- a/
ofproto/ofproto.c
+++ b/
ofproto/ofproto.c
@@
-1372,6
+1372,8
@@
reinit_ports(struct ofproto *p)
size_t n_odp_ports;
size_t i;
+ COVERAGE_INC(ofproto_reinit_ports);
+
svec_init(&devnames);
HMAP_FOR_EACH (ofport, hmap_node, &p->ports) {
svec_add (&devnames, (char *) ofport->opp.name);