]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/arm-ds5-gator.git/blobdiff - daemon/KMod.cpp
gator: Version 5.16
[android-sdk/arm-ds5-gator.git] / daemon / KMod.cpp
index 04f33306487dd85a946f3180dfe6d15f6ea2fff3..559297fe2274dd99780df1549fab53733d8e7c48 100644 (file)
@@ -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();
        }
 }