gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions | Variables
timer.cc File Reference
#include "cpu/kvm/timer.hh"
#include <sys/syscall.h>
#include <unistd.h>
#include <algorithm>
#include <csignal>
#include <ctime>
#include "base/misc.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 gettid ()
 

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...
 

Macro Definition Documentation

#define sigev_notify_thread_id   _sigev_un._tid

Definition at line 60 of file timer.cc.

Function Documentation

static pid_t gettid ( )
static

Definition at line 64 of file timer.cc.

Referenced by PosixKvmTimer::PosixKvmTimer().

Variable Documentation

const uint64_t MIN_HOST_CYCLES = 1000
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 76 of file timer.cc.

Referenced by PosixKvmTimer::calcResolution(), and PerfKvmTimer::calcResolution().


Generated on Fri Jun 9 2017 13:03:56 for gem5 by doxygen 1.8.6