ofproto: Add coverage counter for reinit_ports()
authorJustin Pettit <jpettit@nicira.com>
Tue, 26 Oct 2010 21:54:13 +0000 (14:54 -0700)
committerJustin 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

index ab9a835e6161eafe242e5760bd9bff568023674d..f44d8a2c00291c2f68e14e82070ec64e3057e1b7 100644 (file)
@@ -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);