summaryrefslogtreecommitdiff
path: root/src/sim
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim')
-rw-r--r--src/sim/debug.hh2
-rw-r--r--src/sim/drain.hh3
-rw-r--r--src/sim/eventq.hh2
-rw-r--r--src/sim/init.hh7
-rw-r--r--src/sim/serialize.hh2
-rw-r--r--src/sim/sim_object.hh4
-rw-r--r--src/sim/stat_control.hh6
-rw-r--r--src/sim/system.hh2
8 files changed, 28 insertions, 0 deletions
diff --git a/src/sim/debug.hh b/src/sim/debug.hh
index 0bec5ecf3..bc1bb1e62 100644
--- a/src/sim/debug.hh
+++ b/src/sim/debug.hh
@@ -53,6 +53,8 @@ void takeCheckpoint(Tick when);
*/
void eventqDump();
+void py_interact();
+
int getRemoteGDBPort();
// Remote gdb base port. 0 disables remote gdb.
void setRemoteGDBPort(int port);
diff --git a/src/sim/drain.hh b/src/sim/drain.hh
index 2f5d2d965..6f0769f34 100644
--- a/src/sim/drain.hh
+++ b/src/sim/drain.hh
@@ -236,4 +236,7 @@ class Drainable
};
+DrainManager *createDrainManager();
+void cleanupDrainManager(DrainManager *drain_manager);
+
#endif
diff --git a/src/sim/eventq.hh b/src/sim/eventq.hh
index 968be6ca1..80086ccef 100644
--- a/src/sim/eventq.hh
+++ b/src/sim/eventq.hh
@@ -418,6 +418,8 @@ class EventQueue : public Serializable
#endif
};
+void dumpMainQueue();
+
#ifndef SWIG
class EventManager
{
diff --git a/src/sim/init.hh b/src/sim/init.hh
index ee40b9790..325fc8e6f 100644
--- a/src/sim/init.hh
+++ b/src/sim/init.hh
@@ -31,6 +31,8 @@
#ifndef __SIM_INIT_HH__
#define __SIM_INIT_HH__
+#include <Python.h>
+
/*
* Data structure describing an embedded python file.
*/
@@ -74,8 +76,13 @@ struct EmbeddedSwig
static void initAll();
};
+void dumpStatsHandler(int sigtype);
+void dumprstStatsHandler(int sigtype);
+void exitNowHandler(int sigtype);
+void abortHandler(int sigtype);
void initSignals();
int initM5Python();
int m5Main(int argc, char **argv);
+PyMODINIT_FUNC initm5(void);
#endif // __SIM_INIT_HH__
diff --git a/src/sim/serialize.hh b/src/sim/serialize.hh
index dd33ae74f..e523e68a5 100644
--- a/src/sim/serialize.hh
+++ b/src/sim/serialize.hh
@@ -178,6 +178,8 @@ class Serializable
static void unserializeGlobals(Checkpoint *cp);
};
+void debug_serialize(const std::string &cpt_dir);
+
//
// A SerializableBuilder serves as an evaluation context for a set of
// parameters that describe a specific instance of a Serializable. This
diff --git a/src/sim/sim_object.hh b/src/sim/sim_object.hh
index 6424f631b..1cb06d777 100644
--- a/src/sim/sim_object.hh
+++ b/src/sim/sim_object.hh
@@ -176,4 +176,8 @@ class SimObject : public EventManager, public Serializable, public Drainable
static SimObject *find(const char *name);
};
+#ifdef DEBUG
+void debugObjectBreak(const char *objs);
+#endif
+
#endif // __SIM_OBJECT_HH__
diff --git a/src/sim/stat_control.hh b/src/sim/stat_control.hh
index 1a0fcb35b..889a98364 100644
--- a/src/sim/stat_control.hh
+++ b/src/sim/stat_control.hh
@@ -46,6 +46,12 @@
namespace Stats {
+double statElapsedTime();
+
+Tick statElapsedTicks();
+
+Tick statFinalTick();
+
void initSimStats();
/**
diff --git a/src/sim/system.hh b/src/sim/system.hh
index 05b1f2077..38db86cb2 100644
--- a/src/sim/system.hh
+++ b/src/sim/system.hh
@@ -472,4 +472,6 @@ class System : public MemObject
};
+void printSystems();
+
#endif // __SYSTEM_HH__