#include "dnsdist-web.hh"
#include "base64.hh"
+#include "coverage.hh"
#include "doh.hh"
#include "dolog.hh"
#include "sodcrypto.hh"
}
}
-#ifdef COVERAGE
-extern "C"
-{
- void __gcov_dump(void);
-}
-#endif
-
static bool checkConfigurationTime(const std::string& name)
{
if (!g_configurationDone) {
g_tlslocals.clear();
g_rings.clear();
#endif /* 0 */
-#ifdef COVERAGE
- __gcov_dump();
-#endif
+ pdns::coverage::dumpCoverageData();
_exit(0);
});
#include "base64.hh"
#include "capabilities.hh"
+#include "coverage.hh"
#include "delaypipe.hh"
#include "doh.hh"
#include "dolog.hh"
}
#ifdef COVERAGE
-extern "C"
-{
- void __gcov_dump(void);
-}
-
static void cleanupLuaObjects()
{
/* when our coverage mode is enabled, we need to make
g_selfansweredrespruleactions.setState({});
g_dstates.setState({});
g_policy.setState(ServerPolicy());
+ g_pools.setState({});
clearWebHandlers();
}
static void sigTermHandler(int)
{
cleanupLuaObjects();
- __gcov_dump();
+ pdns::coverage::dumpCoverageData();
_exit(EXIT_SUCCESS);
}
#else /* COVERAGE */