linux.hh (11907:48a3d32da9d8) linux.hh (12591:48dfacae20ba)
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;

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

222 int64_t ru_nvcsw; //!< voluntary context switches
223 int64_t ru_nivcsw; //!< involuntary "
224 };
225
226 static int openSpecialFile(std::string path, Process *process,
227 ThreadContext *tc);
228 static std::string procMeminfo(Process *process, ThreadContext *tc);
229 static std::string etcPasswd(Process *process, ThreadContext *tc);
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;

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

222 int64_t ru_nvcsw; //!< voluntary context switches
223 int64_t ru_nivcsw; //!< involuntary "
224 };
225
226 static int openSpecialFile(std::string path, Process *process,
227 ThreadContext *tc);
228 static std::string procMeminfo(Process *process, ThreadContext *tc);
229 static std::string etcPasswd(Process *process, ThreadContext *tc);
230 static std::string cpuOnline(Process *process, ThreadContext *tc);
230
231 // For futex system call
232 static const unsigned TGT_FUTEX_WAIT = 0;
233 static const unsigned TGT_FUTEX_WAKE = 1;
234 static const unsigned TGT_EAGAIN = 11;
235 static const unsigned TGT_EWOULDBLOCK = TGT_EAGAIN;
236 static const unsigned TGT_FUTEX_PRIVATE_FLAG = 128;
237

--- 32 unchanged lines hidden ---
231
232 // For futex system call
233 static const unsigned TGT_FUTEX_WAIT = 0;
234 static const unsigned TGT_FUTEX_WAKE = 1;
235 static const unsigned TGT_EAGAIN = 11;
236 static const unsigned TGT_EWOULDBLOCK = TGT_EAGAIN;
237 static const unsigned TGT_FUTEX_PRIVATE_FLAG = 128;
238

--- 32 unchanged lines hidden ---