diff options
author | Jon Medhurst <tixy@linaro.org> | 2013-10-11 12:53:06 +0100 |
---|---|---|
committer | Jon Medhurst <tixy@linaro.org> | 2013-10-11 12:53:06 +0100 |
commit | 01239d6842a2e2653b7b42736cf2c10b69d0face (patch) | |
tree | eb6e9bbf6c81208ee7b0681af8d500b64fd849ee /tools/gator/daemon/KMod.cpp | |
parent | 38529e4e6d6c9a9d18b59e1b165e8cd5d0c596da (diff) | |
parent | 4e5eee16c9f3454f74572b7812eb80255d2e31d3 (diff) |
Merge in gator version 5.16
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(); } } |