2 #ifndef __PERF_KVM_STAT_H 3 #define __PERF_KVM_STAT_H 13 #define INVALID_KEY (~0ULL) 25 struct list_head hash_entry;
32 #define DEFAULT_VCPU_NUM 8 70 #define EVENTS_BITS 12 71 #define EVENTS_CACHE_SIZE (1UL << EVENTS_BITS) 128 #define define_exit_reasons_table(name, symbols) \ 129 static struct exit_reasons_table name[] = { \ 130 symbols, { -1, NULL } \
struct kvm_event_stats * vcpu
struct child_event_ops * child_ops
#define EVENTS_CACHE_SIZE
struct exit_reasons_table * exit_reasons
struct kvm_events_ops * ops
const char *const kvm_skip_events[]
const char * report_event
struct kvm_events_ops * events_ops
bool kvm_entry_event(struct perf_evsel *evsel)
int setup_kvm_events_tp(struct perf_kvm_stat *kvm)
const char * kvm_events_tp[]
static struct perf_tool tool
struct exit_reasons_table * exit_reasons
def get_key(time, event, cpu, thread)
int(* key_cmp_fun)(struct kvm_event *, struct kvm_event *, int)
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 kvm_exit_event(struct perf_evsel *evsel)
unsigned int display_time
void exit_event_get_key(struct perf_evsel *evsel, struct perf_sample *sample, struct event_key *key)
const char * kvm_exit_trace
const char * kvm_exit_reason
const char * exit_reasons_isa
struct perf_session * session
const char * kvm_entry_trace
int cpu_isa_init(struct perf_kvm_stat *kvm, const char *cpuid)
struct perf_evlist * evlist
bool exit_event_end(struct perf_evsel *evsel, struct perf_sample *sample, struct event_key *key)
struct intlist * pid_list