diff options
Diffstat (limited to 'tools/gator/daemon/KMod.cpp')
-rw-r--r-- | tools/gator/daemon/KMod.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/gator/daemon/KMod.cpp b/tools/gator/daemon/KMod.cpp index 04f33306487..559297fe227 100644 --- a/tools/gator/daemon/KMod.cpp +++ b/tools/gator/daemon/KMod.cpp @@ -13,6 +13,7 @@ #include <unistd.h> #include "Collector.h" +#include "ConfigurationXML.h" #include "Counter.h" #include "Logging.h" @@ -73,7 +74,8 @@ void KMod::setupCounter(Counter &counter) { } counter.setCount(count); } else if (counter.getCount() > 0) { - logg->logError(__FILE__, __LINE__, "Event Based Sampling is only supported with kernel versions 3.0.0 and higher with CONFIG_PERF_EVENTS=y, and CONFIG_HW_PERF_EVENTS=y\n"); + ConfigurationXML::remove(); + logg->logError(__FILE__, __LINE__, "Event Based Sampling is only supported with kernel versions 3.0.0 and higher with CONFIG_PERF_EVENTS=y, and CONFIG_HW_PERF_EVENTS=y. The invalid configuration.xml has been removed.\n"); handleException(); } } |