Public Member Functions | |
debug_ring (vcpuid::type vcpuid) noexcept | |
virtual | ~debug_ring () noexcept=default |
virtual void | write (const std::string &str) noexcept |
Debug Ring
The debug ring is a simple debug facility that allows the vmm to write string data into a ring buffer while a reader that has shared access to the same buffer can read from the debug ring to extract the strings that are written to the buffer.
Definition at line 38 of file debug_ring.h.
|
noexcept |
Default Constructor
Definition at line 59 of file debug_ring.cpp.
|
virtualdefaultnoexcept |
Debug Ring Destructor
|
virtualnoexcept |
Write to Debug Ring
Writes a string to the debug ring. If the string is larger than the debug ring's internal buffer, the write will fail. If the debug ring is full, the write will keep removing existing strings in the buffer until enough space is made, to add the string.
str | the string to write to the debug ring |
Definition at line 79 of file debug_ring.cpp.