summaryrefslogtreecommitdiff
path: root/src/kern/linux/linux.hh
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2009-01-17 18:56:46 -0500
committerAli Saidi <saidi@eecs.umich.edu>2009-01-17 18:56:46 -0500
commitb4227bd7f697a1f29d25639864f5683d9ddcd41f (patch)
tree1bc2bc16736eea0244a858f70dd30f236b4d3fa6 /src/kern/linux/linux.hh
parent140b4b891ec60496d8aa805fd694d45647ba083c (diff)
downloadgem5-b4227bd7f697a1f29d25639864f5683d9ddcd41f.tar.xz
Fix issue 326: glibc non-deterministic because it reads /proc
Diffstat (limited to 'src/kern/linux/linux.hh')
-rw-r--r--src/kern/linux/linux.hh9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/kern/linux/linux.hh b/src/kern/linux/linux.hh
index a41fac9a7..ad35fa726 100644
--- a/src/kern/linux/linux.hh
+++ b/src/kern/linux/linux.hh
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004-2005 The Regents of The University of Michigan
+ * Copyright (c) 2004-2009 The Regents of The University of Michigan
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -39,9 +39,13 @@ class Linux {};
#else //!FULL_SYSTEM
#include <inttypes.h>
+#include <string>
#include "kern/operatingsystem.hh"
+class ThreadContext;
+class LiveProcess;
+
///
/// This class encapsulates the types, structures, constants,
/// functions, and syscall-number mappings specific to the Alpha Linux
@@ -158,6 +162,9 @@ class Linux : public OperatingSystem
int64_t ru_nivcsw; //!< involuntary "
};
+ static int openSpecialFile(std::string path, LiveProcess *process, ThreadContext *tc);
+ static std::string procMeminfo(LiveProcess *process, ThreadContext *tc);
+
}; // class Linux