linux.hh (5543:3af77710f397) | linux.hh (5795:72ce7502dc71) |
---|---|
1/* | 1/* |
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan | 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; 9 * redistributions in binary form must reproduce the above copyright 10 * notice, this list of conditions and the following disclaimer in the --- 23 unchanged lines hidden (view full) --- 34 35#if FULL_SYSTEM 36 37class Linux {}; 38 39#else //!FULL_SYSTEM 40 41#include <inttypes.h> | 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; 9 * redistributions in binary form must reproduce the above copyright 10 * notice, this list of conditions and the following disclaimer in the --- 23 unchanged lines hidden (view full) --- 34 35#if FULL_SYSTEM 36 37class Linux {}; 38 39#else //!FULL_SYSTEM 40 41#include <inttypes.h> |
42#include <string> |
|
42 43#include "kern/operatingsystem.hh" 44 | 43 44#include "kern/operatingsystem.hh" 45 |
46class ThreadContext; 47class LiveProcess; 48 |
|
45/// 46/// This class encapsulates the types, structures, constants, 47/// functions, and syscall-number mappings specific to the Alpha Linux 48/// syscall interface. 49/// 50class Linux : public OperatingSystem 51{ 52 --- 100 unchanged lines hidden (view full) --- 153 int64_t ru_oublock; //!< block output operations 154 int64_t ru_msgsnd; //!< messages sent 155 int64_t ru_msgrcv; //!< messages received 156 int64_t ru_nsignals; //!< signals received 157 int64_t ru_nvcsw; //!< voluntary context switches 158 int64_t ru_nivcsw; //!< involuntary " 159 }; 160 | 49/// 50/// This class encapsulates the types, structures, constants, 51/// functions, and syscall-number mappings specific to the Alpha Linux 52/// syscall interface. 53/// 54class Linux : public OperatingSystem 55{ 56 --- 100 unchanged lines hidden (view full) --- 157 int64_t ru_oublock; //!< block output operations 158 int64_t ru_msgsnd; //!< messages sent 159 int64_t ru_msgrcv; //!< messages received 160 int64_t ru_nsignals; //!< signals received 161 int64_t ru_nvcsw; //!< voluntary context switches 162 int64_t ru_nivcsw; //!< involuntary " 163 }; 164 |
165 static int openSpecialFile(std::string path, LiveProcess *process, ThreadContext *tc); 166 static std::string procMeminfo(LiveProcess *process, ThreadContext *tc); 167 |
|
161}; // class Linux 162 163 164#endif // FULL_SYSTEM 165 166#endif // __LINUX_HH__ | 168}; // class Linux 169 170 171#endif // FULL_SYSTEM 172 173#endif // __LINUX_HH__ |