From 3ec54af4e94fe28c5e5d21656d4b3e91a7840af6 Mon Sep 17 00:00:00 2001 From: adrian Date: Thu, 24 May 2012 12:25:50 +0000 Subject: [PATCH] TracingPlugin got a dependency check regarding required aspects. git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1271 8c4709b5-6ec9-48aa-a5cd-a96041d1645a --- core/plugins/tracing/TracingPlugin.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/plugins/tracing/TracingPlugin.hpp b/core/plugins/tracing/TracingPlugin.hpp index b4f36f12..8ca4f9f9 100644 --- a/core/plugins/tracing/TracingPlugin.hpp +++ b/core/plugins/tracing/TracingPlugin.hpp @@ -4,9 +4,15 @@ #include #include "controller/ExperimentFlow.hpp" #include "util/MemoryMap.hpp" +#include "config/FailConfig.hpp" #include "plugins/tracing/trace.pb.h" +// Check if configuration dependencies are satisfied: +#if !defined(CONFIG_EVENT_BREAKPOINTS) || !defined(CONFIG_EVENT_MEMREAD) || !defined(CONFIG_EVENT_MEMWRITE) + #error This experiment needs: breakpoints & read/write memory access. Enable these in the cmake-configuration tool. +#endif + /** * \class TracingPlugin *