#include <errno.h>
#include "../../util/kvm-stat.h"
#include <asm/svm.h>
#include <asm/vmx.h>
#include <asm/kvm.h>
Go to the source code of this file.
|
| define_exit_reasons_table (vmx_exit_reasons, VMX_EXIT_REASONS) |
|
| define_exit_reasons_table (svm_exit_reasons, SVM_EXIT_REASONS) |
|
static void | mmio_event_get_key (struct perf_evsel *evsel, struct perf_sample *sample, struct event_key *key) |
|
static bool | mmio_event_begin (struct perf_evsel *evsel, struct perf_sample *sample, struct event_key *key) |
|
static bool | mmio_event_end (struct perf_evsel *evsel, struct perf_sample *sample, struct event_key *key) |
|
static void | mmio_event_decode_key (struct perf_kvm_stat *kvm __maybe_unused, struct event_key *key, char *decode) |
|
static void | ioport_event_get_key (struct perf_evsel *evsel, struct perf_sample *sample, struct event_key *key) |
|
static bool | ioport_event_begin (struct perf_evsel *evsel, struct perf_sample *sample, struct event_key *key) |
|
static bool | ioport_event_end (struct perf_evsel *evsel, struct perf_sample *sample __maybe_unused, struct event_key *key __maybe_unused) |
|
static void | ioport_event_decode_key (struct perf_kvm_stat *kvm __maybe_unused, struct event_key *key, char *decode) |
|
int | cpu_isa_init (struct perf_kvm_stat *kvm, const char *cpuid) |
|
◆ KVM_TRACE_MMIO_READ
#define KVM_TRACE_MMIO_READ 1 |
◆ KVM_TRACE_MMIO_READ_UNSATISFIED
#define KVM_TRACE_MMIO_READ_UNSATISFIED 0 |
◆ KVM_TRACE_MMIO_WRITE
#define KVM_TRACE_MMIO_WRITE 2 |
◆ cpu_isa_init()
int cpu_isa_init |
( |
struct perf_kvm_stat * |
kvm, |
|
|
const char * |
cpuid |
|
) |
| |
◆ define_exit_reasons_table() [1/2]
define_exit_reasons_table |
( |
vmx_exit_reasons |
, |
|
|
VMX_EXIT_REASONS |
|
|
) |
| |
◆ define_exit_reasons_table() [2/2]
define_exit_reasons_table |
( |
svm_exit_reasons |
, |
|
|
SVM_EXIT_REASONS |
|
|
) |
| |
◆ ioport_event_begin()
◆ ioport_event_decode_key()
static void ioport_event_decode_key |
( |
struct perf_kvm_stat *kvm |
__maybe_unused, |
|
|
struct event_key * |
key, |
|
|
char * |
decode |
|
) |
| |
|
static |
◆ ioport_event_end()
◆ ioport_event_get_key()
◆ mmio_event_begin()
◆ mmio_event_decode_key()
static void mmio_event_decode_key |
( |
struct perf_kvm_stat *kvm |
__maybe_unused, |
|
|
struct event_key * |
key, |
|
|
char * |
decode |
|
) |
| |
|
static |
◆ mmio_event_end()
◆ mmio_event_get_key()
◆ decode_str_len
const int decode_str_len = 20 |
◆ exit_events
Initial value:= {
.name = "VM-EXIT"
}
bool exit_event_begin(struct perf_evsel *evsel, struct perf_sample *sample, struct event_key *key)
void exit_event_decode_key(struct perf_kvm_stat *kvm, struct event_key *key, char *decode)
bool exit_event_end(struct perf_evsel *evsel, struct perf_sample *sample, struct event_key *key)
Definition at line 11 of file kvm-stat.c.
◆ ioport_events
Initial value:= {
.name = "IO Port Access"
}
static bool ioport_event_end(struct perf_evsel *evsel, struct perf_sample *sample __maybe_unused, struct event_key *key __maybe_unused)
static void ioport_event_decode_key(struct perf_kvm_stat *kvm __maybe_unused, struct event_key *key, char *decode)
static bool ioport_event_begin(struct perf_evsel *evsel, struct perf_sample *sample, struct event_key *key)
Definition at line 127 of file kvm-stat.c.
◆ kvm_entry_trace
const char* kvm_entry_trace = "kvm:kvm_entry" |
◆ kvm_events_tp
const char* kvm_events_tp[] |
Initial value:= {
"kvm:kvm_entry",
"kvm:kvm_exit",
"kvm:kvm_mmio",
"kvm:kvm_pio",
NULL,
}
Definition at line 134 of file kvm-stat.c.
◆ kvm_exit_reason
const char* kvm_exit_reason = "exit_reason" |
◆ kvm_exit_trace
const char* kvm_exit_trace = "kvm:kvm_exit" |
◆ kvm_reg_events_ops
Initial value:= {
{ NULL, NULL },
}
static struct kvm_events_ops ioport_events
static struct kvm_events_ops mmio_events
static struct kvm_events_ops exit_events
Definition at line 142 of file kvm-stat.c.
◆ kvm_skip_events
const char* const kvm_skip_events[] |
◆ mmio_events
Initial value:= {
.name = "MMIO Access"
}
static bool mmio_event_begin(struct perf_evsel *evsel, struct perf_sample *sample, struct event_key *key)
static void mmio_event_decode_key(struct perf_kvm_stat *kvm __maybe_unused, struct event_key *key, char *decode)
static bool mmio_event_end(struct perf_evsel *evsel, struct perf_sample *sample, struct event_key *key)
Definition at line 83 of file kvm-stat.c.
◆ vcpu_id_str
const char* vcpu_id_str = "vcpu_id" |