|
gem5
v20.1.0.5
|
#include "cpu/kvm/timer.hh"#include <sys/syscall.h>#include <unistd.h>#include <algorithm>#include <csignal>#include <ctime>#include "base/logging.hh"#include "base/trace.hh"#include "debug/KvmTimer.hh"Go to the source code of this file.
Macros | |
| #define | sigev_notify_thread_id _sigev_un._tid |
Functions | |
| static pid_t | sysGettid () |
Variables | |
| static const uint64_t | MIN_HOST_CYCLES = 1000 |
| Minimum number of cycles that a host can spend in a KVM call (used to calculate the resolution of some timers). More... | |
|
static |
Definition at line 62 of file timer.cc.
Referenced by PosixKvmTimer::PosixKvmTimer().
|
static |
Minimum number of cycles that a host can spend in a KVM call (used to calculate the resolution of some timers).
The value of this constant is a bit arbitrary, but in practice, we can't really do anything useful in less than ~1000 cycles.
Definition at line 74 of file timer.cc.
Referenced by PosixKvmTimer::calcResolution(), and PerfKvmTimer::calcResolution().