|
libintrovirt v0.57.4
IntroVirt introspection library
|
Class for converting between native system call numbers and our SystemCall values. More...
#include <SystemCallConverter.hh>
Public Member Functions | |
| SystemCallIndex | normalize (uint32_t index) const |
| Normalize a system call. | |
| uint32_t | native (SystemCallIndex index) const |
| Convert a normalized system call into the native value. | |
| uint32_t | count () const |
| Get the number of system calls detected in the guest. | |
| SystemCallConverter (const WindowsGuest &guest) | |
| Construct a new System Call Table object. | |
| ~SystemCallConverter () | |
| Destroy the instance. | |
Static Public Attributes | |
| static constexpr uint64_t | SystemCallIndexMask = 0x1FFF |
| A mask used for normalizing system calls. | |
Class for converting between native system call numbers and our SystemCall values.
Windows changes around the system call numbers between builds. This class is used to convert between the native values and our "normalized" values.
| introvirt::windows::SystemCallConverter::SystemCallConverter | ( | const WindowsGuest & | guest | ) |
Construct a new System Call Table object.
| guest | The guest to detect call numbers for |
| GuestDetectionException | if we fail to detect call numbers for the guest |
| introvirt::windows::SystemCallConverter::~SystemCallConverter | ( | ) |
Destroy the instance.
| uint32_t introvirt::windows::SystemCallConverter::count | ( | ) | const |
Get the number of system calls detected in the guest.
| uint32_t introvirt::windows::SystemCallConverter::native | ( | SystemCallIndex | index | ) | const |
Convert a normalized system call into the native value.
Windows system call numbers change between builds. To handle that, we have to normalize them to our own representation.
| index | The SystemCallIndex value to convert |
| SystemCallIndex introvirt::windows::SystemCallConverter::normalize | ( | uint32_t | index | ) | const |
Normalize a system call.
Windows system call numbers change between builds. To handle that, we have to normalize them to our own representation.
| index | The raw index used by the guest |
|
staticconstexpr |
A mask used for normalizing system calls.
System call numbers can have extra information, this mask is used to get the call index itself.