gem5  v20.1.0.0
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/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...
 

Macro Definition Documentation

◆ sigev_notify_thread_id

#define sigev_notify_thread_id   _sigev_un._tid

Definition at line 58 of file timer.cc.

Function Documentation

◆ sysGettid()

static pid_t sysGettid ( )
static

Definition at line 62 of file timer.cc.

Referenced by PosixKvmTimer::PosixKvmTimer().

Variable Documentation

◆ MIN_HOST_CYCLES

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 74 of file timer.cc.

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


Generated on Wed Sep 30 2020 14:02:18 for gem5 by doxygen 1.8.17