libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
EventType.hh
Go to the documentation of this file.
1/*
2 * Copyright 2021 Assured Information Security, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#pragma once
17
18#include <ostream>
19#include <string>
20
21namespace introvirt {
22
48
55const std::string& to_string(EventType type);
56
66std::ostream& operator<<(std::ostream& os, EventType type);
67
68} // namespace introvirt
Core IntroVirt classes.
Definition Cr0.hh:20
const std::string & to_string(OS)
EventType
Enum describing a hypervisor event.
Definition EventType.hh:29
@ EVENT_MAX
The highest valid event type.
@ EVENT_FAST_SYSCALL_RET
A system call return event.
@ EVENT_FAST_SYSCALL
A system call event.
@ EVENT_UNKNOWN
An unknown event.
@ EVENT_HYPERCALL
An intercepted hypercall.
@ EVENT_CR_WRITE
A control register was written to.
@ EVENT_REBOOT
The guest VM has rebooted.
@ EVENT_MSR_WRITE
An MSR was written to.
@ EVENT_SHUTDOWN
The guest VM has shutdown.
@ EVENT_MEM_ACCESS
Hardware assisted paging violation (memory breakpoints)
@ EVENT_SINGLE_STEP
Single step event.
@ EVENT_SW_INT
A software interrupt event.
@ EVENT_CR_READ
A control register was read.
@ EVENT_SW_IRET
A software interrupt return event.
@ EVENT_MSR_READ
An MSR was read.
@ EVENT_EXCEPTION
An x86 exception event.
std::ostream & operator<<(std::ostream &, OS)