linux.hh (6744:408673e38566) linux.hh (8767:e575781f71b8)
1/*
2 * Copyright (c) 2004-2009 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 20 unchanged lines hidden (view full) ---

29 */
30
31#ifndef __LINUX_HH__
32#define __LINUX_HH__
33
34#include "base/types.hh"
35#include "config/full_system.hh"
36
1/*
2 * Copyright (c) 2004-2009 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 20 unchanged lines hidden (view full) ---

29 */
30
31#ifndef __LINUX_HH__
32#define __LINUX_HH__
33
34#include "base/types.hh"
35#include "config/full_system.hh"
36
37#if FULL_SYSTEM
38
39class Linux {};
40
41#else //!FULL_SYSTEM
42
43#include <string>
44
45#include "kern/operatingsystem.hh"
46
47class ThreadContext;
48class LiveProcess;
49
50///

--- 124 unchanged lines hidden (view full) ---

175 int64_t ru_nivcsw; //!< involuntary "
176 };
177
178 static int openSpecialFile(std::string path, LiveProcess *process, ThreadContext *tc);
179 static std::string procMeminfo(LiveProcess *process, ThreadContext *tc);
180
181}; // class Linux
182
37#include <string>
38
39#include "kern/operatingsystem.hh"
40
41class ThreadContext;
42class LiveProcess;
43
44///

--- 124 unchanged lines hidden (view full) ---

169 int64_t ru_nivcsw; //!< involuntary "
170 };
171
172 static int openSpecialFile(std::string path, LiveProcess *process, ThreadContext *tc);
173 static std::string procMeminfo(LiveProcess *process, ThreadContext *tc);
174
175}; // class Linux
176
183
184#endif // FULL_SYSTEM
185
186#endif // __LINUX_HH__
177#endif // __LINUX_HH__