Linux Perf
kvm-stat.h File Reference
#include "../perf.h"
#include "evsel.h"
#include "evlist.h"
#include "session.h"
#include "tool.h"
#include "stat.h"
Include dependency graph for kvm-stat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  event_key
 
struct  kvm_event_stats
 
struct  kvm_event
 
struct  kvm_event_key
 
struct  child_event_ops
 
struct  kvm_events_ops
 
struct  exit_reasons_table
 
struct  perf_kvm_stat
 
struct  kvm_reg_events_ops
 

Macros

#define INVALID_KEY   (~0ULL)
 
#define DEFAULT_VCPU_NUM   8
 
#define EVENTS_BITS   12
 
#define EVENTS_CACHE_SIZE   (1UL << EVENTS_BITS)
 
#define define_exit_reasons_table(name, symbols)
 

Typedefs

typedef int(* key_cmp_fun) (struct kvm_event *, struct kvm_event *, int)
 

Functions

void exit_event_get_key (struct perf_evsel *evsel, struct perf_sample *sample, struct event_key *key)
 
bool exit_event_begin (struct perf_evsel *evsel, struct perf_sample *sample, struct event_key *key)
 
bool exit_event_end (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)
 
bool kvm_entry_event (struct perf_evsel *evsel)
 
int setup_kvm_events_tp (struct perf_kvm_stat *kvm)
 
int cpu_isa_init (struct perf_kvm_stat *kvm, const char *cpuid)
 

Variables

const char * kvm_events_tp []
 
struct kvm_reg_events_ops kvm_reg_events_ops []
 
const char *const kvm_skip_events []
 
const char * vcpu_id_str
 
const int decode_str_len
 
const char * kvm_exit_reason
 
const char * kvm_entry_trace
 
const char * kvm_exit_trace
 

Macro Definition Documentation

◆ DEFAULT_VCPU_NUM

#define DEFAULT_VCPU_NUM   8

Definition at line 32 of file kvm-stat.h.

◆ define_exit_reasons_table

#define define_exit_reasons_table (   name,
  symbols 
)
Value:
static struct exit_reasons_table name[] = { \
symbols, { -1, NULL } \
}
const char * name

Definition at line 128 of file kvm-stat.h.

◆ EVENTS_BITS

#define EVENTS_BITS   12

Definition at line 70 of file kvm-stat.h.

◆ EVENTS_CACHE_SIZE

#define EVENTS_CACHE_SIZE   (1UL << EVENTS_BITS)

Definition at line 71 of file kvm-stat.h.

◆ INVALID_KEY

#define INVALID_KEY   (~0ULL)

Definition at line 13 of file kvm-stat.h.

Typedef Documentation

◆ key_cmp_fun

typedef int(* key_cmp_fun) (struct kvm_event *, struct kvm_event *, int)

Definition at line 37 of file kvm-stat.h.

Function Documentation

◆ cpu_isa_init()

int cpu_isa_init ( struct perf_kvm_stat kvm,
const char *  cpuid 
)

Definition at line 103 of file kvm-stat.c.

◆ exit_event_begin()

bool exit_event_begin ( struct perf_evsel evsel,
struct perf_sample sample,
struct event_key key 
)

◆ exit_event_decode_key()

void exit_event_decode_key ( struct perf_kvm_stat kvm,
struct event_key key,
char *  decode 
)

◆ exit_event_end()

bool exit_event_end ( struct perf_evsel evsel,
struct perf_sample sample,
struct event_key key 
)

◆ exit_event_get_key()

void exit_event_get_key ( struct perf_evsel evsel,
struct perf_sample sample,
struct event_key key 
)

◆ kvm_entry_event()

bool kvm_entry_event ( struct perf_evsel evsel)

◆ kvm_exit_event()

bool kvm_exit_event ( struct perf_evsel evsel)

◆ setup_kvm_events_tp()

int setup_kvm_events_tp ( struct perf_kvm_stat kvm)

Definition at line 156 of file kvm-stat.c.

Here is the call graph for this function:

Variable Documentation

◆ decode_str_len

const int decode_str_len

Definition at line 13 of file kvm-stat.c.

◆ kvm_entry_trace

const char* kvm_entry_trace

Definition at line 14 of file kvm-stat.c.

◆ kvm_events_tp

const char* kvm_events_tp[]

Definition at line 30 of file kvm-stat.c.

◆ kvm_exit_reason

const char* kvm_exit_reason

Definition at line 31 of file kvm-stat.c.

◆ kvm_exit_trace

const char* kvm_exit_trace

Definition at line 15 of file kvm-stat.c.

◆ kvm_reg_events_ops

Definition at line 96 of file kvm-stat.c.

◆ kvm_skip_events

const char* const kvm_skip_events[]

Definition at line 102 of file kvm-stat.c.

◆ vcpu_id_str

const char* vcpu_id_str

Definition at line 12 of file kvm-stat.c.