From: Justin Pettit Date: Tue, 26 Oct 2010 21:54:13 +0000 (-0700) Subject: ofproto: Add coverage counter for reinit_ports() X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=898bf89d807e140b7cf1966d2efc9c6410f71c9d;p=openvswitch ofproto: Add coverage counter for reinit_ports() 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. --- diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index ab9a835e..f44d8a2c 100644 --- 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);