Functions | Variables
debug_ring.cpp File Reference

Go to the source code of this file.

Functions

int64_t get_drr (uint64_t vcpuid, struct debug_ring_resources_t **drr) noexcept
 

Variables

std::mutex g_debug_mutex
 
std::map< vcpuid::type, debug_ring_resources_t * > g_drrs
 

Function Documentation

◆ get_drr()

int64_t get_drr ( uint64_t  vcpuid,
struct debug_ring_resources_t **  drr 
)
noexcept

Get Debug Ring Resource

Returns a pointer to a debug_ring_resources_t for a given CPU.

Precondition
expects: drr != nullptr
expects: vcpuid == vcpu that exists
Postcondition
ensures: none
Parameters
vcpuiddefines which debug ring to return
drrthe resulting debug ring
Returns
the debug_ring_resources_t for the provided vcpuid

Definition at line 41 of file debug_ring.cpp.

Variable Documentation

◆ g_debug_mutex

std::mutex g_debug_mutex

Definition at line 32 of file debug_ring.cpp.

◆ g_drrs

std::map<vcpuid::type, debug_ring_resources_t *> g_drrs

Definition at line 38 of file debug_ring.cpp.