From 898bf89d807e140b7cf1966d2efc9c6410f71c9d Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Tue, 26 Oct 2010 14:54:13 -0700 Subject: [PATCH] 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. --- ofproto/ofproto.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.30.2